[Bug 8376] Heap corruption in kernel, leading to a page fault
Wine Bugs
wine-bugs at winehq.org
Sun May 13 14:20:54 CDT 2007
http://bugs.winehq.org/show_bug.cgi?id=8376
------- Additional Comments From focht at gmx.net 2007-13-05 14:20 -------
Hello,
--- quote ---
0009:trace:commdlg:PageSetupDlgA (0x941ee4): hwndOwner = (nil), hDevMode =
(nil), hDevNames = (nil)
--- quote ---
As i thought ... could you please try my two-liner fix from
http://bugs.winehq.org/show_bug.cgi?id=8033 and report back?
Copied it here (look for "FIX:")
--- snip dlls/comdlg32/printdlg.c ---
BOOL WINAPI PageSetupDlgA(LPPAGESETUPDLGA setupdlg)
{
.....
/* Initialize default printer struct. If no printer device info is specified
retrieve the default printer data. */
memset(&pdlg,0,sizeof(pdlg));
pdlg.lStructSize = sizeof(pdlg);
if (setupdlg->hDevMode && setupdlg->hDevNames) {
pdlg.hDevMode = setupdlg->hDevMode;
pdlg.hDevNames = setupdlg->hDevNames;
} else {
pdlg.Flags = PD_RETURNDEFAULT;
bRet = PrintDlgA(&pdlg);
if (!bRet){
if (!(setupdlg->Flags & PSD_NOWARNING)) {
char errstr[256];
LoadStringA(COMDLG32_hInstance, PD32_NO_DEFAULT_PRINTER,
errstr, 255);
MessageBoxA(setupdlg->hwndOwner, errstr, 0, MB_OK |
MB_ICONERROR);
}
return FALSE;
}
/* FIX: there was no input hDevMode and hDevNames: give it to client! */
setupdlg->hDevMode = pdlg.hDevMode;
setupdlg->hDevNames = pdlg.hDevNames;
}
....
}
-- snip dlls/comdlg32/printdlg.c ---
Regards
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the wine-bugs
mailing list