[PATCH] Fix Case Insensitive function importing
changelog: v1-v3 -> 4 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(a)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
Hi, While running your changed tests, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check? Full results can be found at: https://testbot.winehq.org/JobDetails.pl?Key=105864 Your paranoid android. === debian11 (build log) === ../wine/dlls/ntdll/loader.c:627:35: error: unknown type name ‘LDR_’ Task: The win32 Wine build failed === debian11 (build log) === ../wine/dlls/ntdll/loader.c:627:35: error: unknown type name ‘LDR_’ Task: The wow64 Wine build failed
participants (2)
-
Ben Shefte -
Marvin