Ben Shefte : ntdll: Use case insensitive comparison in is_import_dll_system().

Alexandre Julliard julliard at winehq.org
Tue Jan 25 15:41:18 CST 2022


Module: wine
Branch: master
Commit: 9d1ac957b4e4e399b49f9b7f443336806482707e
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=9d1ac957b4e4e399b49f9b7f443336806482707e

Author: Ben Shefte <shefben at gmail.com>
Date:   Tue Jan 25 15:20:24 2022 +0300

ntdll: Use case insensitive comparison in is_import_dll_system().

Fixes a regression introduced by commit 250c113169217933b1fffa8024fa958f71b8aee7.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52446
Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ntdll/loader.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c
index 362e1c66be5..b50b9e61bbc 100644
--- a/dlls/ntdll/loader.c
+++ b/dlls/ntdll/loader.c
@@ -628,7 +628,7 @@ static BOOL is_import_dll_system( LDR_DATA_TABLE_ENTRY *mod, const IMAGE_IMPORT_
 {
     const char *name = get_rva( mod->DllBase, import->Name );
 
-    return !strcmp( name, "ntdll.dll" ) || !strcmp( name, "kernel32.dll" );
+    return !_stricmp( name, "ntdll.dll" ) || !_stricmp( name, "kernel32.dll" );
 }
 
 /**********************************************************************




More information about the wine-cvs mailing list