From 73c64a3a9eba2c00a34aad24602d9aa56cf60b61 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 28 Mar 2008 10:13:32 +0000 Subject: [PATCH] compilation fix for ANSI build: use reinterptre_, not static_cast, to convert from BYTE* to char* git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52895 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/printdlg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); -- 2.45.2