Commit 037fd57c authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Fixed handling of DialogBoxIndirectParamA return value.

parent 73be8d1c
......@@ -954,11 +954,12 @@ BOOL WINAPI PrintDlgA(
sizeof(PRINT_PTRA));
PrintStructures->lpPrintDlg = lppd;
/* and create & process the dialog
/* and create & process the dialog .
* -1 is failure, 0 is broken hwnd, everything else is ok.
*/
bRet = DialogBoxIndirectParamA(hInst, ptr, lppd->hwndOwner,
bRet = (0<DialogBoxIndirectParamA(hInst, ptr, lppd->hwndOwner,
PrintDlgProcA,
(LPARAM)PrintStructures);
(LPARAM)PrintStructures));
if(bRet) {
DEVMODEA *lpdm = PrintStructures->lpDevMode, *lpdmReturn;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment