From: Włodzimierz Skiba Date: Thu, 3 Mar 2005 19:15:38 +0000 (+0000) Subject: Warning fix. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4e22a1f243ff35cf426d243fcc282d915e7d9421 Warning fix. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32581 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/printdlg.cpp b/src/msw/printdlg.cpp index abe7e64ad4..6a8457f3c3 100644 --- a/src/msw/printdlg.cpp +++ b/src/msw/printdlg.cpp @@ -474,11 +474,11 @@ bool wxWindowsPrintNativeData::TransferFrom( const wxPrintData &data ) } devMode->dmPrintQuality = quality; devMode->dmFields |= DM_PRINTQUALITY; - + if (data.GetPrivDataLen() > 0) { memcpy( (char *)devMode+devMode->dmSize, data.GetPrivData(), data.GetPrivDataLen() ); - devMode->dmDriverExtra = data.GetPrivDataLen(); + devMode->dmDriverExtra = (WXWORD)data.GetPrivDataLen(); } if (data.GetBin() != wxPRINTBIN_DEFAULT)