comdlg32: Keep the DEVMODE's papersize member up to date.

This commit is contained in:
Huw Davies 2009-01-14 14:43:00 +00:00 committed by Alexandre Julliard
parent 34c771bd9a
commit 90651c049a
1 changed files with 5 additions and 1 deletions

View File

@ -2965,7 +2965,11 @@ PRINTDLG_PS_WMCommandA(
if(msg == CBN_SELCHANGE){
DWORD paperword = SendDlgItemMessageA(hDlg,cmb2,CB_GETITEMDATA,
SendDlgItemMessageA(hDlg, cmb2, CB_GETCURSEL, 0, 0), 0);
if (paperword != CB_ERR) {
if (paperword != CB_ERR)
{
DEVMODEA *dm = GlobalLock(pda->dlga->hDevMode);
dm->u1.s1.dmPaperSize = paperword;
GlobalUnlock(pda->dlga->hDevMode);
pagesetup_papersizeA(pda->dlga, paperword, &(pda->dlga->ptPaperSize));
if (IsDlgButtonChecked(hDlg, rad2)) {
DWORD tmp = pda->dlga->ptPaperSize.x;