https://bugs.winehq.org/show_bug.cgi?id=37303
Bug ID: 37303 Summary: Change of paper size in print dialog do not update DEVMODE dmFormName member Product: Wine Version: 1.6.2 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: comdlg32 Assignee: wine-bugs@winehq.org Reporter: ralf.habacker@freenet.de
Created attachment 49615 --> https://bugs.winehq.org/attachment.cgi?id=49615 Update dmFormName when changing paper size (patch)
A printer paper size change through the printer dialog of any application do not update the DEVMODE dmFormName struct member.
How to reproduce:
1. run
WINEDEBUG=+psdrv wine notepad
2. check trace output for the following entry (we assume 'A4' is used)
trace:psdrv:dump_devmode dmPaperSize: 9 trace:psdrv:dump_devmode dmFormName: L"A4"
3. open print setting 4. change paper size to a different value (for example 'B5') 5. reopen print settings dialog 6. check trace output for the following entry
trace:psdrv:dump_devmode dmPaperSize: 11 trace:psdrv:dump_devmode dmFormName: L"A4"
-> dmFormName has still the old value
Instead it should have
trace:psdrv:dump_devmode dmFormName: L"B5"
The appended patch fixes this issue.