Skip to content
Snippets Groups Projects
Commit 40320f3e authored by Gerard Patel's avatar Gerard Patel Committed by Alexandre Julliard
Browse files

Fix special case when no printer installed.

parent e020a9a9
No related branches found
No related tags found
No related merge requests found
...@@ -211,6 +211,11 @@ BOOL WINAPI PrintDlgA( ...@@ -211,6 +211,11 @@ BOOL WINAPI PrintDlgA(
* and return PDERR_NODEFAULTPRN * and return PDERR_NODEFAULTPRN
*/ */
/* FIXME: not implemented yet!!! */ /* FIXME: not implemented yet!!! */
if (!PrintStructures.NrOfPrinterInfoEntries)
{
COMDLG32_SetCommDlgExtendedError(PDERR_NODEFAULTPRN);
return FALSE;
}
PrintStructures.CurrentPrinter=0; PrintStructures.CurrentPrinter=0;
PrintStructures.DefaultPrinter=0; PrintStructures.DefaultPrinter=0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment