Piotr Caban : dbghelp: Don't use strcasecmp.
Alexandre Julliard
julliard at winehq.org
Mon Apr 8 15:12:01 CDT 2019
Module: wine
Branch: master
Commit: 061f65f9aaa5e6c9e34f407293906a2cc9033f0d
URL: https://source.winehq.org/git/wine.git/?a=commit;h=061f65f9aaa5e6c9e34f407293906a2cc9033f0d
Author: Piotr Caban <piotr at codeweavers.com>
Date: Mon Apr 8 14:30:40 2019 +0200
dbghelp: Don't use strcasecmp.
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/dbghelp/msc.c | 2 +-
dlls/dbghelp/pe_module.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/dbghelp/msc.c b/dlls/dbghelp/msc.c
index adb66d6..54fbe36 100644
--- a/dlls/dbghelp/msc.c
+++ b/dlls/dbghelp/msc.c
@@ -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;
diff --git a/dlls/dbghelp/pe_module.c b/dlls/dbghelp/pe_module.c
index c077c07..58530e7 100644
--- a/dlls/dbghelp/pe_module.c
+++ b/dlls/dbghelp/pe_module.c
@@ -127,7 +127,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;
More information about the wine-cvs
mailing list