From fab4b11bc22e6f3109ba6fd52f78e33954c80f9f Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Tue, 2 Apr 2019 16:51:32 +0200 Subject: [PATCH] shell.dll16: Don't use strncasecmp. Signed-off-by: Piotr Caban Signed-off-by: Alexandre Julliard --- dlls/shell.dll16/shell.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/shell.dll16/shell.c b/dlls/shell.dll16/shell.c index be8ffeb8170..748db67a02b 100644 --- a/dlls/shell.dll16/shell.c +++ b/dlls/shell.dll16/shell.c @@ -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 */