Applied patch [ 1345297 ] Crash with MSW wxPrintDialog when pressed OK.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36919 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2006-01-17 09:53:14 +00:00
parent 780d7317ed
commit 89a3f5c91f

View File

@ -202,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)