Alexandre Julliard : oleaut32/tests: Fix handle sign extension on 64-bit.

Alexandre Julliard julliard at winehq.org
Fri May 25 10:52:48 CDT 2012


Module: wine
Branch: master
Commit: 4b9a55852345edb4c925c0f5223d076c7ee378aa
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4b9a55852345edb4c925c0f5223d076c7ee378aa

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri May 25 10:29:28 2012 +0200

oleaut32/tests: Fix handle sign extension on 64-bit.

---

 dlls/oleaut32/tests/olepicture.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/oleaut32/tests/olepicture.c b/dlls/oleaut32/tests/olepicture.c
index a70f0b7..353334c 100644
--- a/dlls/oleaut32/tests/olepicture.c
+++ b/dlls/oleaut32/tests/olepicture.c
@@ -979,7 +979,7 @@ static void test_load_save_bmp(void)
 
     hr = IPicture_get_Handle(pic, &handle);
     ok(hr == S_OK,"get_Handle error %#8x\n", hr);
-    ok(UIntToPtr(handle) == desc.u.bmp.hbitmap, "get_Handle returned wrong handle %#x\n", handle);
+    ok(IntToPtr(handle) == desc.u.bmp.hbitmap, "get_Handle returned wrong handle %#x\n", handle);
 
     hmem = GlobalAlloc(GMEM_ZEROINIT, 4096);
     hr = CreateStreamOnHGlobal(hmem, FALSE, &dst_stream);




More information about the wine-cvs mailing list