[WINESYNC] dbghelp: Use stricmp() instead of _strnicmp(..., -1).

Signed-off-by: Alexandre Julliard <julliard@winehq.org>

wine commit id 341feeb10eddd3d139c4c206a43db80d0671ff3b by Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
winesync 2020-09-11 19:12:13 +02:00 committed by Jérôme Gardou
parent 4cc24ef20e
commit 37eff17d4d
4 changed files with 4 additions and 3 deletions

View file

@ -21,6 +21,7 @@ typedef HANDLE HWND;
#define min(x, y) (((x) < (y)) ? (x) : (y)) #define min(x, y) (((x) < (y)) ? (x) : (y))
#define max(x, y) (((x) > (y)) ? (x) : (y)) #define max(x, y) (((x) > (y)) ? (x) : (y))
#define _strnicmp(_String1, _String2, _MaxCount) strncasecmp(_String1, _String2, _MaxCount) #define _strnicmp(_String1, _String2, _MaxCount) strncasecmp(_String1, _String2, _MaxCount)
#define stricmp(_String1, _String2) strcasecmp(_String1, _String2)
#ifdef __i386__ #ifdef __i386__
#define CDECL __cdecl #define CDECL __cdecl

View file

@ -2682,7 +2682,7 @@ static void pdb_process_symbol_imports(const struct process* pcs,
{ {
ptr = (const char*)imp + sizeof(*imp) + strlen(imp->filename); ptr = (const char*)imp + sizeof(*imp) + strlen(imp->filename);
if (i >= CV_MAX_MODULES) FIXME("Out of bounds!!!\n"); if (i >= CV_MAX_MODULES) FIXME("Out of bounds!!!\n");
if (!_strnicmp(pdb_lookup->filename, imp->filename, -1)) if (!stricmp(pdb_lookup->filename, imp->filename))
{ {
if (module_index != -1) FIXME("Twice the entry\n"); if (module_index != -1) FIXME("Twice the entry\n");
else module_index = i; else module_index = i;

View file

@ -129,7 +129,7 @@ static BOOL pe_find_section(struct image_file_map* fmap, const char* name,
sectname = memcpy(tmp, sectname, IMAGE_SIZEOF_SHORT_NAME); sectname = memcpy(tmp, sectname, IMAGE_SIZEOF_SHORT_NAME);
tmp[IMAGE_SIZEOF_SHORT_NAME] = '\0'; tmp[IMAGE_SIZEOF_SHORT_NAME] = '\0';
} }
if (!_strnicmp(sectname, name, -1)) if (!stricmp(sectname, name))
{ {
ism->fmap = fmap; ism->fmap = fmap;
ism->sidx = i; ism->sidx = i;

View file

@ -4,4 +4,4 @@ files:
include/dbghelp.h: sdk/include/psdk/dbghelp.h include/dbghelp.h: sdk/include/psdk/dbghelp.h
include/wine/mscvpdb.h: sdk/include/reactos/wine/mscvpdb.h include/wine/mscvpdb.h: sdk/include/reactos/wine/mscvpdb.h
tags: tags:
wine: 0163db5152124efbd1a5ba46aa52a6da66d897d5 wine: 341feeb10eddd3d139c4c206a43db80d0671ff3b