[PATCH] winmm/tests: Fix a test on win98

Detlef Riekenberg wine.dev at web.de
Wed Apr 8 15:15:17 CDT 2009


---
 dlls/winmm/tests/mixer.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/dlls/winmm/tests/mixer.c b/dlls/winmm/tests/mixer.c
index b54bb83..59627a7 100644
--- a/dlls/winmm/tests/mixer.c
+++ b/dlls/winmm/tests/mixer.c
@@ -1030,9 +1030,12 @@ static void test_mixerOpen(void)
            mmsys_error(rc));
 
         rc = mixerOpen(&mix, d, 0xdeadbeef, 0, CALLBACK_WINDOW);
-        ok(rc == MMSYSERR_INVALPARAM,
+        ok(rc == MMSYSERR_INVALPARAM ||
+           rc == MMSYSERR_NOERROR, /* 98 */
            "mixerOpen: MMSYSERR_INVALPARAM expected, got %s\n",
            mmsys_error(rc));
+        if (rc == MMSYSERR_NOERROR)
+            test_mixerClose(mix);
 
         /* Test mixerOpen with a NULL dwCallback and CALLBACK_WINDOW flag. */
         rc = mixerOpen(&mix, d, 0, 0, CALLBACK_WINDOW);
-- 
1.5.4.3


--=-cq8IAkAkv0GZTcJX44FZ--




More information about the wine-patches mailing list