Commit 0806d811 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

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

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