Fixed handling of DialogBoxIndirectParamA return value.

This commit is contained in:
Marcus Meissner 2000-12-07 23:13:03 +00:00 committed by Alexandre Julliard
parent 73be8d1cfd
commit 037fd57c86
1 changed files with 4 additions and 3 deletions

View File

@ -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;