Made string compare case insensitive in GetModuleHandle16() as a

quick fix for WinWord 6.
This commit is contained in:
Marcus Meissner 1999-07-10 10:12:43 +00:00 committed by Alexandre Julliard
parent 8d79990591
commit 79a3f80008

View file

@ -1486,7 +1486,13 @@ HMODULE16 WINAPI GetModuleHandle16( LPCSTR name )
if (!pModule) break; if (!pModule) break;
name_table = (BYTE *)pModule + pModule->name_table; 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; return hModule;
} }