]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dib.cpp
VC++ /Wp64 warning fixes
[wxWidgets.git] / src / msw / dib.cpp
index 66ebda4954c55bc634f3b31f25d036aa8af2fdc9..9b1c1a6160f7c51b3417989432a05b6dab866e5b 100644 (file)
@@ -566,7 +566,7 @@ HGLOBAL wxDIB::ConvertFromBitmap(HBITMAP hbmp)
         return NULL;
     }
 
-    if ( !ConvertFromBitmap((BITMAPINFO *)(void *)GlobalPtr(hDIB), hbmp) )
+    if ( !ConvertFromBitmap((BITMAPINFO *)(void *)GlobalPtrLock(hDIB), hbmp) )
     {
         // this really shouldn't happen... it worked the first time, why not
         // now?