Commit 52f87c4a authored by Alexandre Julliard's avatar Alexandre Julliard

msvcrt/tests: Fix the scanf pointer formatting tests on 64-bit.

parent 159dfb21
......@@ -54,7 +54,8 @@ static void test_sscanf( void )
ok( ptr == NULL,"sscanf reads %p instead of %x\n", ptr, 0 );
ok( sscanf("-46F174", "%p", &ptr) == 1, "sscanf failed\n" );
ok( ptr == (void *)0xFFB90E8C,"sscanf reads %p instead of %x\n", ptr, 0xFFB90E8C );
ok( ptr == (void *)(ULONG_PTR)-0x46f174,"sscanf reads %p instead of %p\n",
ptr, (void *)(ULONG_PTR)-0x46f174 );
ok( sscanf("+46F175", "%p", &ptr) == 1, "sscanf failed\n" );
ok( ptr == (void *)0x46F175,"sscanf reads %p instead of %x\n", ptr, 0x46F175 );
......
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