Commit 373973c9 authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent 341feeb1
......@@ -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:
......
......@@ -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;
......
......@@ -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]))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment