From be0721d4427bd8f8814998ebcae88aa10da7e1f6 Mon Sep 17 00:00:00 2001 From: Detlef Riekenberg Date: Wed, 8 Apr 2009 22:15:17 +0200 Subject: [PATCH] winmm/tests: Fix a test on win98. --- dlls/winmm/tests/mixer.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dlls/winmm/tests/mixer.c b/dlls/winmm/tests/mixer.c index b54bb832fd5..59627a7b38f 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);