comdlg32: Set the correct error code if there is no default printer.

This commit is contained in:
Huw Davies 2009-01-26 12:15:22 +00:00 committed by Alexandre Julliard
parent 1f601015cd
commit 0806d811ed
1 changed files with 1 additions and 0 deletions

View File

@ -3646,6 +3646,7 @@ static BOOL pagesetup_common(pagesetup_data *data)
LoadStringW(COMDLG32_hInstance, PD32_NO_DEFAULT_PRINTER, errstr, 255);
MessageBoxW(data->u.dlgw->hwndOwner, errstr, 0, MB_OK | MB_ICONERROR);
}
COMDLG32_SetCommDlgExtendedError(PDERR_NODEFAULTPRN);
return FALSE;
}
pagesetup_change_printer(def, data);