http://bugs.winehq.org/show_bug.cgi?id=8376
------- Additional Comments From rankincj@yahoo.com 2007-13-05 12:15 ------- Created an attachment (id=6267) --> (http://bugs.winehq.org/attachment.cgi?id=6267&action=view) WINEDEBUG=+seh,+tid,+commdlg
The relevant bit seems to be here. The dodgy one is "PageSetupDlgA":
0009:trace:commdlg:PageSetupDlgA (0x941ee4): hwndOwner = (nil), hDevMode = (nil), hDevNames = (nil) hinst 0x400000, flags 00000400 (PSD_RETURNDEFAULT|) 0009:trace:commdlg:PrintDlgA (0x33fcce): hwndOwner = (nil), hDevMode = (nil), hDevNames = (nil) pp. 0-0, min p 0, max p 0, copies 0, hinst (nil) flags 00000400 (PD_RETURNDEFAULT ) 0009:trace:commdlg:PrintDlgA exit! (1) 0009:trace:seh:raise_exception code=c0000005 flags=0 addr=0x42d723
Notice that I don't get a warning about an invalid heap here.