We were passing a pointer to our wrapper struct instead of the pointer stored
inside it (as a HANDLE).
Closes #13861.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70331
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// Step 1:
// Allocate a buffer of the correct size.
dwNeeded = DocumentProperties( NULL,
// Step 1:
// Allocate a buffer of the correct size.
dwNeeded = DocumentProperties( NULL,
- printer, // Handle to our printer.
+ *printer, // Handle to our printer.
szPrinterName, // Name of the printer.
NULL, // Asking for size, so
NULL, // these are not used.
szPrinterName, // Name of the printer.
NULL, // Asking for size, so
NULL, // these are not used.
// Step 2:
// Get the default DevMode for the printer
dwRet = DocumentProperties( NULL,
// Step 2:
// Get the default DevMode for the printer
dwRet = DocumentProperties( NULL,
szPrinterName,
tempDevMode, // The address of the buffer to fill.
NULL, // Not using the input buffer.
szPrinterName,
tempDevMode, // The address of the buffer to fill.
NULL, // Not using the input buffer.