From 5e807741319eb53f9646ade8a5b41c6bb9398cd8 Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Tue, 2 Apr 2019 16:51:36 +0200 Subject: [PATCH] ntoskrnl.exe: Don't use strcasecmp. Signed-off-by: Piotr Caban Signed-off-by: Alexandre Julliard --- dlls/ntoskrnl.exe/ntoskrnl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c index 77a610d7dba..f3360121273 100644 --- a/dlls/ntoskrnl.exe/ntoskrnl.c +++ b/dlls/ntoskrnl.exe/ntoskrnl.c @@ -4101,7 +4101,7 @@ void * __cdecl NTOSKRNL_memset( void *dst, int c, size_t n ) */ int __cdecl NTOSKRNL__stricmp( LPCSTR str1, LPCSTR str2 ) { - return strcasecmp( str1, str2 ); + return _strnicmp( str1, str2, -1 ); } /********************************************************************* @@ -4109,7 +4109,7 @@ int __cdecl NTOSKRNL__stricmp( LPCSTR str1, LPCSTR str2 ) */ int __cdecl NTOSKRNL__strnicmp( LPCSTR str1, LPCSTR str2, size_t n ) { - return strncasecmp( str1, str2, n ); + return _strnicmp( str1, str2, n ); } /*********************************************************************