Ralf Habacker : comdlg32: Update dmFormName when changing paper size in print UI.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Nov 20 09:54:15 CST 2014
Module: wine
Branch: master
Commit: 2b9d337f6d7848cde660ddc41c419eaefc446eb9
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2b9d337f6d7848cde660ddc41c419eaefc446eb9
Author: Ralf Habacker <ralf.habacker at freenet.de>
Date: Thu Nov 20 14:03:33 2014 +0100
comdlg32: Update dmFormName when changing paper size in print UI.
---
dlls/comdlg32/printdlg.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/dlls/comdlg32/printdlg.c b/dlls/comdlg32/printdlg.c
index d52b47d..bedd9c4 100644
--- a/dlls/comdlg32/printdlg.c
+++ b/dlls/comdlg32/printdlg.c
@@ -1798,10 +1798,12 @@ static LRESULT PRINTDLG_WMCommandA(HWND hDlg, WPARAM wParam,
case cmb2: /* Papersize */
{
DWORD Sel = SendDlgItemMessageA(hDlg, cmb2, CB_GETCURSEL, 0, 0);
- if(Sel != CB_ERR)
+ if(Sel != CB_ERR) {
lpdm->u1.s1.dmPaperSize = SendDlgItemMessageA(hDlg, cmb2,
CB_GETITEMDATA,
Sel, 0);
+ GetDlgItemTextA(hDlg, cmb2, (char *)lpdm->dmFormName, CCHFORMNAME);
+ }
}
break;
@@ -1954,10 +1956,12 @@ static LRESULT PRINTDLG_WMCommandW(HWND hDlg, WPARAM wParam,
case cmb2: /* Papersize */
{
DWORD Sel = SendDlgItemMessageW(hDlg, cmb2, CB_GETCURSEL, 0, 0);
- if(Sel != CB_ERR)
+ if(Sel != CB_ERR) {
lpdm->u1.s1.dmPaperSize = SendDlgItemMessageW(hDlg, cmb2,
CB_GETITEMDATA,
Sel, 0);
+ GetDlgItemTextW(hDlg, cmb2, lpdm->dmFormName, CCHFORMNAME);
+ }
}
break;
More information about the wine-cvs
mailing list