oleaut32/tests: Fix a pointer cast warning.
authorAlexandre Julliard <julliard@winehq.org>
Wed, 1 Sep 2010 11:01:42 +0000 (13:01 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 1 Sep 2010 12:01:04 +0000 (14:01 +0200)
dlls/oleaut32/tests/olepicture.c

index 03d47db5d1d9d0fa10ce1f997068a68789eca306..c817b5fda99803e86aa48605f55b31fa262d72aa 100644 (file)
@@ -219,7 +219,7 @@ test_pic_with_stream(LPSTREAM stream, unsigned int imgsize)
         if (handle)
         {
             BITMAP bmp;
-            GetObject((HGDIOBJ)handle, sizeof(BITMAP), &bmp);
+            GetObject(UlongToHandle(handle), sizeof(BITMAP), &bmp);
             todo_wine ok(bmp.bmBits != 0, "not a dib\n");
         }