From f2cb86decb334fc72ff5422122ba190bc9b6046e Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 21 Mar 2018 22:58:50 +0100 Subject: [PATCH] ntoskrnl: Add prefixes on all C runtime functions. Signed-off-by: Alexandre Julliard --- dlls/ntoskrnl.exe/ntoskrnl.c | 7 +++++-- dlls/ntoskrnl.exe/ntoskrnl.exe.spec | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c index 6ef3d3121d5..d8277a9c1a9 100644 --- a/dlls/ntoskrnl.exe/ntoskrnl.c +++ b/dlls/ntoskrnl.exe/ntoskrnl.c @@ -3342,7 +3342,10 @@ void * __cdecl NTOSKRNL_memset( void *dst, int c, size_t n ) return memset( dst, c, n ); } -int __cdecl _stricmp( LPCSTR str1, LPCSTR str2 ) +/********************************************************************* + * _stricmp (NTOSKRNL.@) + */ +int __cdecl NTOSKRNL__stricmp( LPCSTR str1, LPCSTR str2 ) { return strcasecmp( str1, str2 ); } @@ -3350,7 +3353,7 @@ int __cdecl _stricmp( LPCSTR str1, LPCSTR str2 ) /********************************************************************* * _strnicmp (NTOSKRNL.@) */ -int __cdecl _strnicmp( LPCSTR str1, LPCSTR str2, size_t n ) +int __cdecl NTOSKRNL__strnicmp( LPCSTR str1, LPCSTR str2, size_t n ) { return strncasecmp( str1, str2, n ); } diff --git a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec index 2d3d6f19c31..dca1404d0b6 100644 --- a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec +++ b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec @@ -1426,9 +1426,9 @@ @ cdecl -private _purecall() msvcrt._purecall @ varargs -private _snprintf(ptr long str) msvcrt._snprintf @ varargs -private _snwprintf(ptr long wstr) msvcrt._snwprintf -@ cdecl -private _stricmp(str str) +@ cdecl -private _stricmp(str str) NTOSKRNL__stricmp @ cdecl -private _strlwr(str) msvcrt._strlwr -@ cdecl -private _strnicmp(str str long) _strnicmp +@ cdecl -private _strnicmp(str str long) NTOSKRNL__strnicmp @ cdecl -private _strnset(str long long) msvcrt._strnset @ cdecl -private _strrev(str) msvcrt._strrev @ cdecl -private _strset(str long) msvcrt._strset