From 575b4116b59951a254d3ddcdfed7e82dc74acf32 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Tue, 6 Sep 2005 10:22:43 +0000 Subject: [PATCH] PrintDlg16: Copy back the Flags, nFromPage, nToPage and nCopies struct members after the print dialog finishes. --- dlls/commdlg/printdlg16.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dlls/commdlg/printdlg16.c b/dlls/commdlg/printdlg16.c index 21046c40a67..ca959654fbc 100644 --- a/dlls/commdlg/printdlg16.c +++ b/dlls/commdlg/printdlg16.c @@ -493,6 +493,14 @@ BOOL16 WINAPI PrintDlg16( pi->pPortName ); 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))) GlobalFree16(hDlgTmpl); /* created from the 32 bits resource */