]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/printdlg.cpp
DeleteFunction argument should be non-const since it
[wxWidgets.git] / src / msw / printdlg.cpp
index 5db827d26301cf7d3815a55436f03ac642b23012..33e9028994c5f783b0fdbabe4e85b822e39cbfbf 100644 (file)
 // headers
 // ---------------------------------------------------------------------------
 
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-    #pragma implementation "printdlg.h"
-#endif
-
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
@@ -206,7 +202,8 @@ bool wxWindowsPrintNativeData::TransferTo( wxPrintData &data )
 
         //// Printer name
         if (devMode->dmDeviceName[0] != 0)
-            data.SetPrinterName( devMode->dmDeviceName );
+            // This syntax fixes a crash when using VS 7.1
+            data.SetPrinterName( wxString(devMode->dmDeviceName, CCHDEVICENAME) );
 
         //// Colour
         if (devMode->dmFields & DM_COLOR)