Paul Vriens : winmm/tests: Fix a test failure on Vista and W2K8.

Alexandre Julliard julliard at winehq.org
Wed Nov 12 07:18:38 CST 2008


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

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Tue Nov 11 17:31:44 2008 +0100

winmm/tests: Fix a test failure on Vista and W2K8.

---

 dlls/winmm/tests/wave.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/dlls/winmm/tests/wave.c b/dlls/winmm/tests/wave.c
index a66afa3..09b0f46 100644
--- a/dlls/winmm/tests/wave.c
+++ b/dlls/winmm/tests/wave.c
@@ -891,9 +891,10 @@ static void wave_out_test_device(int device)
        "expected, got %s\n", dev_name(device),wave_out_error(rc));
 
     rc=waveOutGetDevCapsW(device,&capsW,4);
-    ok(rc==MMSYSERR_NOERROR || rc==MMSYSERR_NOTSUPPORTED,
-       "waveOutGetDevCapsW(%s): MMSYSERR_NOERROR or MMSYSERR_NOTSUPPORTED "
-       "expected, got %s\n",dev_name(device),wave_out_error(rc));
+    ok(rc==MMSYSERR_NOERROR || rc==MMSYSERR_NOTSUPPORTED ||
+       rc==MMSYSERR_INVALPARAM, /* Vista, W2K8 */
+       "waveOutGetDevCapsW(%s): unexpected return value %s\n",
+       dev_name(device),wave_out_error(rc));
 
     nameA=NULL;
     rc=waveOutMessage((HWAVEOUT)device, DRV_QUERYDEVICEINTERFACESIZE,




More information about the wine-cvs mailing list