Paul Vriens : advapi32/tests: Fix some test failures on 64bit systems.
Alexandre Julliard
julliard at winehq.org
Mon Nov 16 11:44:00 CST 2009
Module: wine
Branch: master
Commit: f852d98ee1cb69537a8090c4d90271040819ef68
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f852d98ee1cb69537a8090c4d90271040819ef68
Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date: Mon Nov 16 11:27:27 2009 +0100
advapi32/tests: Fix some test failures on 64bit systems.
---
dlls/advapi32/tests/eventlog.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/advapi32/tests/eventlog.c b/dlls/advapi32/tests/eventlog.c
index c989d4a..d7e2dba 100644
--- a/dlls/advapi32/tests/eventlog.c
+++ b/dlls/advapi32/tests/eventlog.c
@@ -870,7 +870,7 @@ static void test_readwrite(void)
/* We are already DWORD aligned, there should still be some padding */
if ((((UINT_PTR)buf + calculated_sidoffset) % sizeof(DWORD)) == 0)
- ok(*(DWORD_PTR *)((BYTE *)buf + calculated_sidoffset) == 0, "Expected 0\n");
+ ok(*(DWORD *)((BYTE *)buf + calculated_sidoffset) == 0, "Expected 0\n");
ok((((UINT_PTR)buf + record->UserSidOffset) % sizeof(DWORD)) == 0, "Expected DWORD alignment\n");
}
@@ -894,7 +894,7 @@ static void test_readwrite(void)
ptr += lstrlenA(ptr) + 1;
}
- ok(record->Length == *(DWORD_PTR *)((BYTE *)buf + record->Length - sizeof(DWORD)),
+ ok(record->Length == *(DWORD *)((BYTE *)buf + record->Length - sizeof(DWORD)),
"Expected the closing DWORD to contain the length of the record\n");
HeapFree(GetProcessHeap(), 0, buf);
More information about the wine-cvs
mailing list