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

This commit is contained in:
Alexandre Julliard 2009-01-04 14:11:08 +01:00
parent 159dfb219c
commit 52f87c4a57
1 changed files with 2 additions and 1 deletions

View File

@ -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 );