From 0b1a181c239605a98c72dab19de79698845c5605 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 12 May 2014 13:14:42 +0000 Subject: [PATCH] Fix print preview in 64 bit MinGW wxMSW builds. Don't hardcode wrong PRINTDLG structure size for 64 bit builds. In fact, don't hardcode it at all as it just doesn't seem to be necessary to do it, the comment about Cygwin getting it wrong seems to be out of date. Closes #16256. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/dcprint.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/msw/dcprint.cpp b/src/msw/dcprint.cpp index d5c6dbc8302c..99b28328f50e 100644 --- a/src/msw/dcprint.cpp +++ b/src/msw/dcprint.cpp @@ -251,16 +251,8 @@ static bool wxGetDefaultDeviceName(wxString& deviceName, wxString& portName) LPTSTR lpszPortName; PRINTDLG pd; - - // Cygwin has trouble believing PRINTDLG is 66 bytes - thinks it is 68 -#ifdef __GNUWIN32__ - memset(&pd, 0, 66); - pd.lStructSize = 66; // sizeof(PRINTDLG); -#else memset(&pd, 0, sizeof(PRINTDLG)); pd.lStructSize = sizeof(PRINTDLG); -#endif - pd.hwndOwner = (HWND)NULL; pd.hDevMode = NULL; // Will be created by PrintDlg pd.hDevNames = NULL; // Ditto