Dmitry Timoshkov : kernel32/tests: Fix locale.c compilation with Visual Studio 14.0.

Alexandre Julliard julliard at winehq.org
Mon Mar 2 16:22:23 CST 2020


Module: wine
Branch: master
Commit: 7c461d6302b6820acad10c8e0ff320d2095927d9
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=7c461d6302b6820acad10c8e0ff320d2095927d9

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Mon Mar  2 14:30:35 2020 +0800

kernel32/tests: Fix locale.c compilation with Visual Studio 14.0.

Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/kernel32/tests/locale.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dlls/kernel32/tests/locale.c b/dlls/kernel32/tests/locale.c
index 1df3c0dcd6..31add74e4e 100644
--- a/dlls/kernel32/tests/locale.c
+++ b/dlls/kernel32/tests/locale.c
@@ -25,6 +25,8 @@
  *  the control panel i8n page), we will still get the expected results.
  */
 
+#define _CRT_NON_CONFORMING_WCSTOK
+
 #include <assert.h>
 #include <stdlib.h>
 #include <stdarg.h>
@@ -4197,7 +4199,7 @@ static void test_GetCPInfo(void)
                 for (i = 0; i <= sizeof(buf); i++)
                 {
                     memset( wbuf, 0xcc, sizeof(wbuf) );
-                    RtlCustomCPToUnicodeN( &table, wbuf, sizeof(wbuf), &reslen, (char *)buf, i );
+                    pRtlCustomCPToUnicodeN( &table, wbuf, sizeof(wbuf), &reslen, (char *)buf, i );
                     for (j = 0; j < 4; j++) if (expect[i][j] == 0xcccc) break;
                     ok( reslen == j * sizeof(WCHAR), "%u: wrong len %u\n", i, reslen );
                     for (j = 0; j < 4; j++)




More information about the wine-cvs mailing list