user32/tests: Use wine_dbgstr_a() instead of %.8s.

This should better handle NULL pointers and bad strings.

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Francois Gouget 2021-08-08 00:46:38 +02:00 committed by Alexandre Julliard
parent c6a75d4936
commit 1b36c21821
1 changed files with 1 additions and 1 deletions

View File

@ -1927,7 +1927,7 @@ static void test_data_handles(void)
ok( is_fixed( h ), "expected fixed mem %p\n", h );
ok( is_moveable( text ), "expected moveable mem %p\n", text );
ptr = GlobalLock( h );
ok( !strcmp( ptr, "foobar" ), "wrong data '%.8s'\n", ptr );
ok( ptr && !strcmp( ptr, "foobar" ), "wrong data %s\n", wine_dbgstr_a(ptr) );
GlobalUnlock( h );
r = EmptyClipboard();