Alexandre Julliard : msvcrt/tests: Fix the scanf pointer formatting tests on 64-bit.
Alexandre Julliard
julliard at winehq.org
Sun Jan 4 09:09:08 CST 2009
Module: wine
Branch: master
Commit: 52f87c4a5747c7672ffc82b1ea669972b5607252
URL: http://source.winehq.org/git/wine.git/?a=commit;h=52f87c4a5747c7672ffc82b1ea669972b5607252
Author: Alexandre Julliard <julliard at winehq.org>
Date: Sun Jan 4 14:11:08 2009 +0100
msvcrt/tests: Fix the scanf pointer formatting tests on 64-bit.
---
dlls/msvcrt/tests/scanf.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/msvcrt/tests/scanf.c b/dlls/msvcrt/tests/scanf.c
index cb005f9..0ec89ff 100644
--- a/dlls/msvcrt/tests/scanf.c
+++ b/dlls/msvcrt/tests/scanf.c
@@ -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 );
More information about the wine-cvs
mailing list