Detlef Riekenberg : comdlg32/tests: PrintDlg with PD_RETURNDEFAULT can fail .

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jul 24 06:55:02 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 75dce501ef2752adedf7d27c6b514f4a6768aca0
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=75dce501ef2752adedf7d27c6b514f4a6768aca0

Author: Detlef Riekenberg <wine.dev at web.de>
Date:   Sun Jul 23 20:39:18 2006 +0200

comdlg32/tests: PrintDlg with PD_RETURNDEFAULT can fail.

---

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

diff --git a/dlls/comdlg32/tests/printdlg.c b/dlls/comdlg32/tests/printdlg.c
index 934391a..ce78415 100644
--- a/dlls/comdlg32/tests/printdlg.c
+++ b/dlls/comdlg32/tests/printdlg.c
@@ -70,7 +70,9 @@ #endif
     pDlg->Flags = PD_RETURNDEFAULT;
     SetLastError(0xdeadbeef);
     res = PrintDlgA(pDlg);
-    ok(res, "returned %ld with 0x%lx and 0x%lx (expected '!= 0')\n", res, GetLastError(), CommDlgExtendedError());
+    ok( res || (CommDlgExtendedError() == PDERR_NODEFAULTPRN),
+        "returned %ld with 0x%lx and 0x%lx (expected '!= 0' or '0' and " \
+        "PDERR_NODEFAULTPRN)\n", res, GetLastError(), CommDlgExtendedError());
 
     HeapFree(GetProcessHeap(), 0, pDlg);
 




More information about the wine-cvs mailing list