PrintDlg16: Copy back the Flags, nFromPage, nToPage and nCopies struct
members after the print dialog finishes.
This commit is contained in:
parent
ff771e2e21
commit
575b4116b5
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue