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

members after the print dialog finishes.
This commit is contained in:
Marcus Meissner 2005-09-06 10:22:43 +00:00 committed by Alexandre Julliard
parent ff771e2e21
commit 575b4116b5
1 changed files with 8 additions and 0 deletions

View File

@ -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 */