From: Bernhard Übelacker bernhardu@mailbox.org
--- dlls/msvcp140/tests/msvcp140.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/msvcp140/tests/msvcp140.c b/dlls/msvcp140/tests/msvcp140.c index d2bcd192f45..e72ac84e71f 100644 --- a/dlls/msvcp140/tests/msvcp140.c +++ b/dlls/msvcp140/tests/msvcp140.c @@ -725,7 +725,7 @@ static void test_to_wide(void) ok(!ret, "Got unexpected result %d\n", ret); ret = p_To_wide(NULL, dst); ok(!ret, "Got unexpected result %d\n", ret); - ok(!memcmp(dst, compare, sizeof(compare)), "Destination was modified: %s\n", wine_dbgstr_w(dst)); + ok(!memcmp(dst, compare, sizeof(compare)), "Destination was modified: %s\n", wine_dbgstr_wn(dst, ARRAY_SIZE(dst)));
for (i = 0; i < ARRAY_SIZE(tests); ++i) { @@ -733,7 +733,7 @@ static void test_to_wide(void) expected = MultiByteToWideChar(CP_ACP, 0, tests[i], -1, compare, ARRAY_SIZE(compare)); ok(ret == expected, "Got unexpected result %d, expected %d, test case %u\n", ret, expected, i); ok(!memcmp(dst, compare, sizeof(compare)), "Got unexpected output %s, test case %u\n", - wine_dbgstr_w(dst), i); + wine_dbgstr_wn(dst, ARRAY_SIZE(dst)), i); }
/* Output length is limited to MAX_PATH.*/ @@ -748,7 +748,7 @@ static void test_to_wide(void) expected = MultiByteToWideChar(CP_ACP, 0, longstr, -1, compare, MAX_PATH); ok(ret == expected, "Got unexpected result %d, expected %d, length %u\n", ret, expected, i); ok(!memcmp(dst, compare, sizeof(compare)), "Got unexpected output %s, length %u\n", - wine_dbgstr_w(dst), i); + wine_dbgstr_wn(dst, ARRAY_SIZE(dst)), i); } }