Commit 575b4116 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

PrintDlg16: Copy back the Flags, nFromPage, nToPage and nCopies struct

members after the print dialog finishes.
parent ff771e2e
...@@ -493,6 +493,14 @@ BOOL16 WINAPI PrintDlg16( ...@@ -493,6 +493,14 @@ BOOL16 WINAPI PrintDlg16(
pi->pPortName pi->pPortName
); );
GlobalUnlock16(lppd->hDevMode); GlobalUnlock16(lppd->hDevMode);
/* Copy back the [out] integer parameters */
#define CVAL(x) lppd->x = PrintStructures->lpPrintDlg->x;
CVAL(Flags);
CVAL(nFromPage);
CVAL(nToPage);
CVAL(nCopies);
#undef CVAL
} }
if (!(lppd->Flags & (PD_ENABLESETUPTEMPLATEHANDLE | PD_ENABLESETUPTEMPLATE))) if (!(lppd->Flags & (PD_ENABLESETUPTEMPLATEHANDLE | PD_ENABLESETUPTEMPLATE)))
GlobalFree16(hDlgTmpl); /* created from the 32 bits resource */ GlobalFree16(hDlgTmpl); /* created from the 32 bits resource */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment