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

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
feature/deterministic
Dmitry Timoshkov 2020-03-02 14:30:35 +08:00 committed by Alexandre Julliard
parent 2703827f9b
commit 7c461d6302
1 changed files with 3 additions and 1 deletions

View File

@ -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++)