From: Bernhard Übelacker bernhardu@mailbox.org
--- dlls/win32u/tests/win32u.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/dlls/win32u/tests/win32u.c b/dlls/win32u/tests/win32u.c index 8e1b56f6501..e2c97efe989 100644 --- a/dlls/win32u/tests/win32u.c +++ b/dlls/win32u/tests/win32u.c @@ -206,7 +206,7 @@ static void test_class(void) ok( ret == 4, "NtUserGetAtomName returned %lu\n", ret ); ok( name.Length == 0xdead, "Length = %u\n", name.Length ); ok( name.MaximumLength == sizeof(buf), "MaximumLength = %u\n", name.MaximumLength ); - ok( !wcscmp( buf, L"test" ), "buf = %s\n", debugstr_w(buf) ); + ok( !wcscmp( buf, L"test" ), "buf = %s\n", debugstr_wn(buf, ARRAY_SIZE(buf)) );
memset( buf, 0xcc, sizeof(buf) ); name.Buffer = buf; @@ -216,7 +216,7 @@ static void test_class(void) ok( ret == 3, "NtUserGetAtomName returned %lu\n", ret ); ok( name.Length == 0xdead, "Length = %u\n", name.Length ); ok( name.MaximumLength == 8, "MaximumLength = %u\n", name.MaximumLength ); - ok( !wcscmp( buf, L"tes" ), "buf = %s\n", debugstr_w(buf) ); + ok( !wcscmp( buf, L"tes" ), "buf = %s\n", debugstr_wn(buf, ARRAY_SIZE(buf)) );
memset( buf, 0xcc, sizeof(buf) ); name.Buffer = buf; @@ -234,7 +234,7 @@ static void test_class(void) ok( ret == 4, "NtUserGetClassName returned %lu\n", ret ); ok( name.Length == 0xdead, "Length = %u\n", name.Length ); ok( name.MaximumLength == sizeof(buf), "MaximumLength = %u\n", name.MaximumLength ); - ok( !wcscmp( buf, L"test" ), "buf = %s\n", debugstr_w(buf) ); + ok( !wcscmp( buf, L"test" ), "buf = %s\n", debugstr_wn(buf, ARRAY_SIZE(buf)) );
memset( buf, 0xcc, sizeof(buf) ); name.Buffer = buf; @@ -244,7 +244,7 @@ static void test_class(void) ok( ret == 3, "NtUserGetClassName returned %lu\n", ret ); ok( name.Length == 0xdead, "Length = %u\n", name.Length ); ok( name.MaximumLength == 8, "MaximumLength = %u\n", name.MaximumLength ); - ok( !wcscmp( buf, L"tes" ), "buf = %s\n", debugstr_w(buf) ); + ok( !wcscmp( buf, L"tes" ), "buf = %s\n", debugstr_wn(buf, ARRAY_SIZE(buf)) );
memset( buf, 0xcc, sizeof(buf) ); name.Buffer = buf; @@ -266,7 +266,7 @@ static void test_class(void) ret = NtUserGetAtomName( class, &name ); ok( !ret && GetLastError() == ERROR_INVALID_HANDLE, "NtUserGetAtomName returned %lx %lu\n", ret, GetLastError() ); - ok( buf[0] == 0xcccc, "buf = %s\n", debugstr_w(buf) ); + ok( buf[0] == 0xcccc, "buf = %s\n", debugstr_wn(buf, ARRAY_SIZE(buf)) );
}