dbghelp: Don't use strcasecmp.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2019-04-08 14:30:40 +02:00 committed by Alexandre Julliard
parent e7d1107f32
commit 061f65f9aa
2 changed files with 2 additions and 2 deletions

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); 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 (!strcasecmp(pdb_lookup->filename, imp->filename)) if (!_strnicmp(pdb_lookup->filename, imp->filename, -1))
{ {
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

@ -127,7 +127,7 @@ 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 (!strcasecmp(sectname, name)) if (!_strnicmp(sectname, name, -1))
{ {
ism->fmap = fmap; ism->fmap = fmap;
ism->sidx = i; ism->sidx = i;