Commit f1f7e096 authored by Martin Storsjö's avatar Martin Storsjö Committed by Alexandre Julliard

ntdll/tests: Fix printing of incorrect exception handler data.

*(DWORD *)data is the value being compared; printing the 'data' pointer itself provides little value here. Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent 474d1824
...@@ -2123,7 +2123,7 @@ static void call_virtual_unwind( int testnum, const struct unwind_test *test ) ...@@ -2123,7 +2123,7 @@ static void call_virtual_unwind( int testnum, const struct unwind_test *test )
ok( handler == expected_handler || broken( test->broken_results && handler == broken_handler ), ok( handler == expected_handler || broken( test->broken_results && handler == broken_handler ),
"%u/%u: wrong handler %p/%p\n", testnum, i, handler, expected_handler ); "%u/%u: wrong handler %p/%p\n", testnum, i, handler, expected_handler );
if (handler) if (handler)
ok( *(DWORD *)data == 0x08070605, "%u/%u: wrong handler data %p\n", testnum, i, data ); ok( *(DWORD *)data == 0x08070605, "%u/%u: wrong handler data %lx\n", testnum, i, *(DWORD *)data );
else else
ok( data == (void *)0xdeadbeef, "%u/%u: handler data set to %p\n", testnum, i, data ); ok( data == (void *)0xdeadbeef, "%u/%u: handler data set to %p\n", testnum, i, data );
...@@ -5144,7 +5144,7 @@ static void call_virtual_unwind( int testnum, const struct unwind_test *test ) ...@@ -5144,7 +5144,7 @@ static void call_virtual_unwind( int testnum, const struct unwind_test *test )
ok( (char *)handler == (char *)code_mem + 0x200, ok( (char *)handler == (char *)code_mem + 0x200,
"%u/%u: wrong handler %p/%p\n", testnum, i, handler, (char *)code_mem + 0x200 ); "%u/%u: wrong handler %p/%p\n", testnum, i, handler, (char *)code_mem + 0x200 );
if (handler) ok( *(DWORD *)data == 0x08070605, if (handler) ok( *(DWORD *)data == 0x08070605,
"%u/%u: wrong handler data %p\n", testnum, i, data ); "%u/%u: wrong handler data %lx\n", testnum, i, *(DWORD *)data );
} }
else else
{ {
...@@ -6822,7 +6822,7 @@ static void call_virtual_unwind( int testnum, const struct unwind_test *test ) ...@@ -6822,7 +6822,7 @@ static void call_virtual_unwind( int testnum, const struct unwind_test *test )
ok( (char *)handler == (char *)code_mem + 0x200, ok( (char *)handler == (char *)code_mem + 0x200,
"%u/%u: wrong handler %p/%p\n", testnum, i, handler, (char *)code_mem + 0x200 ); "%u/%u: wrong handler %p/%p\n", testnum, i, handler, (char *)code_mem + 0x200 );
if (handler) ok( *(DWORD *)data == 0x08070605, if (handler) ok( *(DWORD *)data == 0x08070605,
"%u/%u: wrong handler data %p\n", testnum, i, data ); "%u/%u: wrong handler data %lx\n", testnum, i, *(DWORD *)data );
} }
else else
{ {
......
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