Francois Gouget : comdlg32/tests: Tell PageSetupDlg() not to bring up a dialog if there is no default printer.

Alexandre Julliard julliard at winehq.org
Tue Oct 9 13:37:31 CDT 2007


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

Author: Francois Gouget <fgouget at free.fr>
Date:   Sat Oct  6 16:43:58 2007 +0200

comdlg32/tests: Tell PageSetupDlg() not to bring up a dialog if there is no default printer.

---

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

diff --git a/dlls/comdlg32/tests/printdlg.c b/dlls/comdlg32/tests/printdlg.c
index 6827cb0..e458a2f 100644
--- a/dlls/comdlg32/tests/printdlg.c
+++ b/dlls/comdlg32/tests/printdlg.c
@@ -74,7 +74,7 @@ static void test_PageSetupDlgA(void)
 
     ZeroMemory(pDlg, sizeof(PAGESETUPDLGA));
     pDlg->lStructSize = sizeof(PAGESETUPDLGA);
-    pDlg->Flags = PSD_RETURNDEFAULT;
+    pDlg->Flags = PSD_RETURNDEFAULT | PSD_NOWARNING;
     SetLastError(0xdeadbeef);
     res = PageSetupDlgA(pDlg);
     ok( res || (CommDlgExtendedError() == PDERR_NODEFAULTPRN),




More information about the wine-cvs mailing list