mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-05 14:08:21 +00:00
Made string compare case insensitive in GetModuleHandle16() as a
quick fix for WinWord 6.
This commit is contained in:
parent
8d79990591
commit
79a3f80008
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue