Commit 40320f3e authored by Gerard Patel's avatar Gerard Patel Committed by Alexandre Julliard

Fix special case when no printer installed.

parent e020a9a9
......@@ -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;
......
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