shell.dll16: Don't use strncasecmp.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2019-04-02 16:51:32 +02:00 committed by Alexandre Julliard
parent c1f851179e
commit fab4b11bc2

View file

@ -40,6 +40,7 @@
#include "wingdi.h"
#include "shlobj.h"
#include "shlwapi.h"
#include "winternl.h"
#include "wine/winbase16.h"
#include "wine/winuser16.h"
@ -358,7 +359,7 @@ static LPSTR SHELL_FindString(LPSTR lpEnv, LPCSTR entry)
l = strlen(entry);
for( ; *lpEnv ; lpEnv+=strlen(lpEnv)+1 )
{ if( strncasecmp(lpEnv, entry, l) )
{ if( _strnicmp(lpEnv, entry, l) )
continue;
if( !*(lpEnv+l) )
return (lpEnv + l); /* empty entry */