]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dcprint.cpp
Applied a few old patches,
[wxWidgets.git] / src / msw / dcprint.cpp
index bd7399b58c8bfa9f0a4f9d642581b51742778d81..fbd402eec5b95cac9ac877ee5e185246bb5fc37f 100644 (file)
@@ -361,7 +361,7 @@ WXHDC WXDLLEXPORT wxGetPrinterDC(const wxPrintData& printDataConst)
 
     LPDEVMODE lpDevMode = (LPDEVMODE) NULL;
 
-    HGLOBAL hDevMode = (HGLOBAL) printData.GetNativeData();
+    HGLOBAL hDevMode = (HGLOBAL)(DWORD) printData.GetNativeData();
 
     if ( hDevMode )
         lpDevMode = (DEVMODE*) GlobalLock(hDevMode);