From 26721c25f6e3e070b0c7c7cd6fb62c94a4a55811 Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Tue, 1 Oct 2013 11:29:22 +0200 Subject: [PATCH] msvcrt: Don't forward wcsncmp to ntdll. --- dlls/msvcrt/msvcrt.spec | 2 +- dlls/msvcrt/wcs.c | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/dlls/msvcrt/msvcrt.spec b/dlls/msvcrt/msvcrt.spec index f8a4b732478..43daf0f81af 100644 --- a/dlls/msvcrt/msvcrt.spec +++ b/dlls/msvcrt/msvcrt.spec @@ -1492,7 +1492,7 @@ @ cdecl wcslen(wstr) MSVCRT_wcslen @ cdecl wcsncat(wstr wstr long) ntdll.wcsncat @ cdecl wcsncat_s(wstr long wstr long) MSVCRT_wcsncat_s -@ cdecl wcsncmp(wstr wstr long) ntdll.wcsncmp +@ cdecl wcsncmp(wstr wstr long) MSVCRT_wcsncmp @ cdecl wcsncpy(ptr wstr long) MSVCRT_wcsncpy @ cdecl wcsncpy_s(ptr long wstr long) MSVCRT_wcsncpy_s @ cdecl wcsnlen(wstr long) MSVCRT_wcsnlen diff --git a/dlls/msvcrt/wcs.c b/dlls/msvcrt/wcs.c index 4b23671320f..97d916f30db 100644 --- a/dlls/msvcrt/wcs.c +++ b/dlls/msvcrt/wcs.c @@ -1923,3 +1923,11 @@ __int64 CDECL _wtoi64(const MSVCRT_wchar_t *str) { return _wtoi64_l(str, NULL); } + +/********************************************************************* + * wcsncmp (MSVCRT.@) + */ +int CDECL MSVCRT_wcsncmp(const MSVCRT_wchar_t *str1, const MSVCRT_wchar_t *str2, int n) +{ + return strncmpW(str1, str2, n); +}