mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-02 11:37:26 +00:00
GetModuleHandle16: treat Win32 modules correctly.
This commit is contained in:
parent
45822e6bdc
commit
53477e49c5
1 changed files with 1 additions and 1 deletions
|
@ -1469,7 +1469,6 @@ HMODULE16 WINAPI GetModuleHandle16( LPCSTR name )
|
||||||
pModule = NE_GetPtr( hModule );
|
pModule = NE_GetPtr( hModule );
|
||||||
if (!pModule) break;
|
if (!pModule) break;
|
||||||
if (pModule->flags & NE_FFLAGS_WIN32) continue;
|
if (pModule->flags & NE_FFLAGS_WIN32) continue;
|
||||||
if (pModule->flags & NE_FFLAGS_WIN32) continue;
|
|
||||||
|
|
||||||
name_table = (BYTE *)pModule + pModule->name_table;
|
name_table = (BYTE *)pModule + pModule->name_table;
|
||||||
if ((*name_table == len) && !strncmp(name, name_table+1, len))
|
if ((*name_table == len) && !strncmp(name, name_table+1, len))
|
||||||
|
@ -1486,6 +1485,7 @@ HMODULE16 WINAPI GetModuleHandle16( LPCSTR name )
|
||||||
{
|
{
|
||||||
pModule = NE_GetPtr( hModule );
|
pModule = NE_GetPtr( hModule );
|
||||||
if (!pModule) break;
|
if (!pModule) break;
|
||||||
|
if (pModule->flags & NE_FFLAGS_WIN32) continue;
|
||||||
|
|
||||||
name_table = (BYTE *)pModule + pModule->name_table;
|
name_table = (BYTE *)pModule + pModule->name_table;
|
||||||
/* FIXME: the lstrncmpiA is WRONG. It should not be case insensitive,
|
/* FIXME: the lstrncmpiA is WRONG. It should not be case insensitive,
|
||||||
|
|
Loading…
Reference in a new issue