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

Alexandre Julliard julliard at winehq.org
Mon Jan 26 10:14:36 CST 2009


Module: wine
Branch: master
Commit: 0806d811ed80edf71133422ac1fe61d5c9e0f06d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=0806d811ed80edf71133422ac1fe61d5c9e0f06d

Author: Huw Davies <huw at codeweavers.com>
Date:   Mon Jan 26 12:15:22 2009 +0000

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

---

 dlls/comdlg32/printdlg.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/comdlg32/printdlg.c b/dlls/comdlg32/printdlg.c
index a89eab8..318c82b 100644
--- a/dlls/comdlg32/printdlg.c
+++ b/dlls/comdlg32/printdlg.c
@@ -3646,6 +3646,7 @@ static BOOL pagesetup_common(pagesetup_data *data)
                 LoadStringW(COMDLG32_hInstance, PD32_NO_DEFAULT_PRINTER, errstr, 255);
                 MessageBoxW(data->u.dlgw->hwndOwner, errstr, 0, MB_OK | MB_ICONERROR);
             }
+            COMDLG32_SetCommDlgExtendedError(PDERR_NODEFAULTPRN);
             return FALSE;
         }
         pagesetup_change_printer(def, data);




More information about the wine-cvs mailing list