krnl386: Use stricmp() instead of _strnicmp(..., -1).

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
feature/deterministic
Alexandre Julliard 2020-04-07 14:25:22 +02:00
parent 341feeb10e
commit 373973c9e9
3 changed files with 6 additions and 6 deletions

View File

@ -1462,7 +1462,7 @@ HMODULE16 WINAPI GetModuleHandle16( LPCSTR name )
loadedfn--;
}
/* case insensitive compare ... */
if (!_strnicmp(loadedfn, s, -1))
if (!stricmp(loadedfn, s))
return hModule;
}
return 0;
@ -1782,7 +1782,7 @@ static HMODULE16 NE_GetModuleByFilename( LPCSTR name )
loadedfn--;
}
/* case insensitive compare ... */
if (!_strnicmp(loadedfn, s, -1))
if (!stricmp(loadedfn, s))
return hModule;
}
/* If basename (without ext) matches the module name of a module:

View File

@ -179,11 +179,11 @@ static BOOL check_list( const char *module, int ordinal, const char *func, const
if (_strnicmp( module, *list, len-1 ) || module[len]) continue;
if (p[1] == '*' && !p[2]) return TRUE;
if (!strcmp( ord_str, p + 1 )) return TRUE;
if (func && !_strnicmp( func, p + 1, -1 )) return TRUE;
if (func && !stricmp( func, p + 1 )) return TRUE;
}
else /* function only */
{
if (func && !_strnicmp( func, *list, -1 )) return TRUE;
if (func && !stricmp( func, *list )) return TRUE;
}
}
return FALSE;

View File

@ -209,7 +209,7 @@ static DWORD NE_FindNameTableId( NE_MODULE *pModule, LPCSTR typeId, LPCSTR resId
if (p[1] & 0x8000)
{
if (!HIWORD(typeId)) continue;
if (_strnicmp( typeId, (char *)(p + 3), -1 )) continue;
if (stricmp( typeId, (char *)(p + 3) )) continue;
}
else if (HIWORD(typeId) || (((DWORD)typeId & ~0x8000)!= p[1]))
continue;
@ -219,7 +219,7 @@ static DWORD NE_FindNameTableId( NE_MODULE *pModule, LPCSTR typeId, LPCSTR resId
if (p[2] & 0x8000)
{
if (!HIWORD(resId)) continue;
if (_strnicmp( resId, (char*)(p+3)+strlen((char*)(p+3))+1, -1 )) continue;
if (stricmp( resId, (char*)(p+3)+strlen((char*)(p+3))+1 )) continue;
}
else if (HIWORD(resId) || ((LOWORD(resId) & ~0x8000) != p[2]))