From: Bernhard Übelacker bernhardu@mailbox.org
--- dlls/user32/tests/win.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c index 8da4e11b635..1d3feaca234 100644 --- a/dlls/user32/tests/win.c +++ b/dlls/user32/tests/win.c @@ -8345,7 +8345,7 @@ static void test_gettext(void) bufW[0] = 0xcc; buf_len = InternalGetWindowText( hwnd, bufW, ARRAYSIZE(bufW) ); ok( buf_len == ARRAYSIZE("caption") - 1, "expected a nonempty window text\n" ); - ok( !lstrcmpW( bufW, L"caption" ), "got %s\n", debugstr_w(bufW) ); + ok( !lstrcmpW( bufW, L"caption" ), "got %s\n", debugstr_wn(bufW, ARRAY_SIZE(bufW)) );
g_wm_gettext_override.enabled = FALSE;
@@ -8458,7 +8458,7 @@ static void test_gettext(void) g_wm_gettext_override.dont_terminate = TRUE; buf_len = GetWindowTextW( hwnd, bufW, ARRAY_SIZE(bufW)); ok( buf_len == 4, "Unexpected text length, %d\n", buf_len ); - ok( !memcmp(bufW, textW, 4 * sizeof(WCHAR)), "Unexpected window text, %s\n", wine_dbgstr_w(bufW) ); + ok( !memcmp(bufW, textW, 4 * sizeof(WCHAR)), "Unexpected window text, %s\n", wine_dbgstr_wn(bufW, ARRAY_SIZE(bufW)) ); ok( bufW[4] == 0, "Unexpected buffer contents, %#x\n", bufW[4] ); g_wm_gettext_override.dont_terminate = FALSE;
@@ -8477,7 +8477,7 @@ static void test_gettext(void) g_wm_gettext_override.dont_terminate = TRUE; buf_len = GetWindowTextW( hwnd2, bufW, ARRAY_SIZE(bufW)); ok( buf_len == 4, "Unexpected text length, %d\n", buf_len ); - ok( !memcmp(bufW, textW, 4 * sizeof(WCHAR)), "Unexpected window text, %s\n", wine_dbgstr_w(bufW) ); + ok( !memcmp(bufW, textW, 4 * sizeof(WCHAR)), "Unexpected window text, %s\n", wine_dbgstr_wn(bufW, ARRAY_SIZE(bufW)) ); ok( bufW[4] == 0x1c1c, "Unexpected buffer contents, %#x\n", bufW[4] ); g_wm_gettext_override.dont_terminate = FALSE;