PATCH: PrintDlg16 - some fixes
Marcus Meissner
meissner at suse.de
Sun Sep 4 12:00:51 CDT 2005
Hi,
We need to copy back the integer flags too from the 32bit
dialog into the 16bit structure.
Ciao, Marcus
Changelog:
PrintDlg16: Copy back the Flags, nFromPage, nToPage and nCopies
struct members after the print dialog finishes.
Index: printdlg16.c
===================================================================
RCS file: /home/wine/wine/dlls/commdlg/printdlg16.c,v
retrieving revision 1.11
diff -u -r1.11 printdlg16.c
--- dlls/commdlg/printdlg16.c 5 Jul 2005 14:11:04 -0000 1.11
+++ dlls/commdlg/printdlg16.c 4 Sep 2005 16:57:44 -0000
@@ -493,6 +493,14 @@
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 */
More information about the wine-patches
mailing list