[WINESYNC] dbghelp: Don't use strcasecmp.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>

wine commit id 061f65f9aaa5e6c9e34f407293906a2cc9033f0d by Piotr Caban <piotr@codeweavers.com>
This commit is contained in:
winesync 2020-09-11 15:56:23 +02:00 committed by Jérôme Gardou
parent 9ed477cdd9
commit ad6eaca464
4 changed files with 4 additions and 3 deletions

View file

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

View file

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

View file

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

View file

@ -4,4 +4,4 @@ files:
include/dbghelp.h: sdk/include/psdk/dbghelp.h
include/wine/mscvpdb.h: sdk/include/reactos/wine/mscvpdb.h
tags:
wine: 3d6febc997c808e7c91289c34f7bb48b8b1fe2bb
wine: 061f65f9aaa5e6c9e34f407293906a2cc9033f0d