James Hawkins : comctl32: Fix two failing tests in win9x.

Alexandre Julliard julliard at winehq.org
Mon Jun 30 08:27:35 CDT 2008


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

Author: James Hawkins <jhawkins at codeweavers.com>
Date:   Sun Jun 29 21:08:36 2008 -0500

comctl32: Fix two failing tests in win9x.

---

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

diff --git a/dlls/comdlg32/tests/filedlg.c b/dlls/comdlg32/tests/filedlg.c
index bd7689f..ea999f3 100644
--- a/dlls/comdlg32/tests/filedlg.c
+++ b/dlls/comdlg32/tests/filedlg.c
@@ -111,7 +111,9 @@ static void test_DialogCancel(void)
     else
     {
         ok(0 == result, "expected %d, got %d\n", 0, result);
-        ok(0 == CommDlgExtendedError(), "expected %d, got %d\n", 0,
+        ok(0 == CommDlgExtendedError() ||
+           CDERR_INITIALIZATION == CommDlgExtendedError(), /* win9x */
+           "expected %d or %d, got %d\n", 0, CDERR_INITIALIZATION,
            CommDlgExtendedError());
     }
 
@@ -122,7 +124,9 @@ static void test_DialogCancel(void)
     else
     {
         ok(0 == result, "expected %d, got %d\n", 0, result);
-        ok(0 == CommDlgExtendedError(), "expected %d, got %d\n", 0,
+        ok(0 == CommDlgExtendedError() ||
+           CDERR_INITIALIZATION == CommDlgExtendedError(), /* win9x */
+           "expected %d or %d, got %d\n", 0, CDERR_INITIALIZATION,
            CommDlgExtendedError());
     }
 }




More information about the wine-cvs mailing list