Commit 1b36c218 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

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

This should better handle NULL pointers and bad strings. Signed-off-by: 's avatarFrancois Gouget <fgouget@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent c6a75d49
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment