]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/printdlg.cpp
fix some harmless compilation in (release) MSVC build
[wxWidgets.git] / src / msw / printdlg.cpp
index 46247dd0bb0af76961947b0bb86edf79e969ec74..cedf15ad4609b5f1646aff2a5d185620ea5b9ef7 100644 (file)
@@ -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');