[PATCH v5] Fix Case Insensitive function importing

Ben Shefte shefben at gmail.com
Mon Jan 24 17:11:27 CST 2022


changelog:
v1-v4 -> 5 removed unicode code referemces
Fixes Regression from: Wine 6.21

https://bugs.winehq.org/show_bug.cgi?id=52446

Signed-off-by: Ben Shefte <shefben at gmail.com>
---
 dlls/ntdll/loader.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c
index 362e1c66be5..41d9012c519 100644
--- a/dlls/ntdll/loader.c
+++ b/dlls/ntdll/loader.c
@@ -624,11 +624,11 @@ static WCHAR *append_dll_ext( const WCHAR *name )
 /***********************************************************************
  *           is_import_dll_system
  */
-static BOOL is_import_dll_system( LDR_DATA_TABLE_ENTRY *mod, const IMAGE_IMPORT_DESCRIPTOR *import )
+static BOOL is_import_dll_system( LDR_ DATA_TABLE_ENTRY *mod, const IMAGE_IMPORT_DESCRIPTOR *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" );
 }
 
 /**********************************************************************
-- 
2.27.0




More information about the wine-devel mailing list