Fix special case when no printer installed.

This commit is contained in:
Gerard Patel 1999-08-15 16:33:11 +00:00 committed by Alexandre Julliard
parent e020a9a95d
commit 40320f3e7e
1 changed files with 5 additions and 0 deletions

View File

@ -211,6 +211,11 @@ BOOL WINAPI PrintDlgA(
* and return PDERR_NODEFAULTPRN
*/
/* FIXME: not implemented yet!!! */
if (!PrintStructures.NrOfPrinterInfoEntries)
{
COMDLG32_SetCommDlgExtendedError(PDERR_NODEFAULTPRN);
return FALSE;
}
PrintStructures.CurrentPrinter=0;
PrintStructures.DefaultPrinter=0;