X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/47af39fbf462db5c9ccf41c8d95a16d53fdb94a7..dbe44db1e2edbf282db4c1557c2d52beca22abd6:/src/msw/printdlg.cpp diff --git a/src/msw/printdlg.cpp b/src/msw/printdlg.cpp index 46247dd0bb..cedf15ad46 100644 --- a/src/msw/printdlg.cpp +++ b/src/msw/printdlg.cpp @@ -422,7 +422,7 @@ bool wxWindowsPrintNativeData::TransferFrom( const wxPrintData &data ) { // NB: the cast is needed in the ANSI build, strangely enough // dmDeviceName is BYTE[] and not char[] there - wxStrncpy(wx_static_cast(wxChar *, devMode->dmDeviceName), + wxStrncpy(wx_reinterpret_cast(wxChar *, devMode->dmDeviceName), name.wx_str(), WXSIZEOF(devMode->dmDeviceName) - 1); devMode->dmDeviceName[WXSIZEOF(devMode->dmDeviceName) - 1] = wxT('\0');