Commit 79a3f800 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Made string compare case insensitive in GetModuleHandle16() as a

quick fix for WinWord 6.
parent 8d799905
......@@ -1486,7 +1486,13 @@ HMODULE16 WINAPI GetModuleHandle16( LPCSTR name )
if (!pModule) break;
name_table = (BYTE *)pModule + pModule->name_table;
if ((*name_table == len) && !strncmp(tmpstr, name_table+1, len))
/* FIXME: the lstrncmpiA is WRONG. It should not be case insensitive,
* but case sensitive! (Unfortunately Winword 6 and subdlls have
* lowercased module names, but try to load uppercase DLLs, so this
* 'i' compare is just a quickfix until the loader handles that
* correctly. -MM 990705
*/
if ((*name_table == len) && !lstrncmpiA(tmpstr, name_table+1, len))
return hModule;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment