diff --git a/loader/ne/module.c b/loader/ne/module.c index 9b393e3236c..dc76b7c0957 100644 --- a/loader/ne/module.c +++ b/loader/ne/module.c @@ -1469,7 +1469,6 @@ HMODULE16 WINAPI GetModuleHandle16( LPCSTR name ) pModule = NE_GetPtr( hModule ); if (!pModule) break; if (pModule->flags & NE_FFLAGS_WIN32) continue; - if (pModule->flags & NE_FFLAGS_WIN32) continue; name_table = (BYTE *)pModule + pModule->name_table; if ((*name_table == len) && !strncmp(name, name_table+1, len)) @@ -1486,6 +1485,7 @@ HMODULE16 WINAPI GetModuleHandle16( LPCSTR name ) { pModule = NE_GetPtr( hModule ); if (!pModule) break; + if (pModule->flags & NE_FFLAGS_WIN32) continue; name_table = (BYTE *)pModule + pModule->name_table; /* FIXME: the lstrncmpiA is WRONG. It should not be case insensitive,