Piotr Caban : msvcrt: Don't forward wcsncmp to ntdll.

Alexandre Julliard julliard at winehq.org
Tue Oct 1 14:54:28 CDT 2013


Module: wine
Branch: master
Commit: 26721c25f6e3e070b0c7c7cd6fb62c94a4a55811
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=26721c25f6e3e070b0c7c7cd6fb62c94a4a55811

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Tue Oct  1 11:29:22 2013 +0200

msvcrt: Don't forward wcsncmp to ntdll.

---

 dlls/msvcrt/msvcrt.spec |    2 +-
 dlls/msvcrt/wcs.c       |    8 ++++++++
 2 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/dlls/msvcrt/msvcrt.spec b/dlls/msvcrt/msvcrt.spec
index f8a4b73..43daf0f 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 4b23671..97d916f 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);
+}




More information about the wine-cvs mailing list