Fix special case when no printer installed.
This commit is contained in:
parent
e020a9a95d
commit
40320f3e7e
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue