ole32/tests: Fix some pointer cast warnings on 64-bit.

Nicolas Le Cam niko.lecam at gmail.com
Sun Jan 10 16:12:51 CST 2010


-- 
Nicolas Le Cam
-------------- next part --------------
From 43d8eb7fb4acc0e7114675be3b1febc4c7621b59 Mon Sep 17 00:00:00 2001
From: Nicolas Le Cam <niko.lecam at gmail.com>
Date: Sun, 10 Jan 2010 20:20:43 +0100
Subject: ole32/tests: Fix some pointer cast warnings on 64-bit.

---
 dlls/ole32/tests/moniker.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/ole32/tests/moniker.c b/dlls/ole32/tests/moniker.c
index 7cc5f78..3ec0e96 100644
--- a/dlls/ole32/tests/moniker.c
+++ b/dlls/ole32/tests/moniker.c
@@ -1714,9 +1714,9 @@ static void test_pointer_moniker(void)
     /* Hashing */
     hr = IMoniker_Hash(moniker, &hash);
     ok_ole_success(hr, IMoniker_Hash);
-    ok(hash == (DWORD)&Test_ClassFactory,
+    ok(hash == PtrToUlong(&Test_ClassFactory),
         "Hash value should have been 0x%08x, instead of 0x%08x\n",
-        (DWORD)&Test_ClassFactory, hash);
+        PtrToUlong(&Test_ClassFactory), hash);
 
     /* IsSystemMoniker test */
     hr = IMoniker_IsSystemMoniker(moniker, &moniker_type);
-- 
1.6.3.3


More information about the wine-patches mailing list