Jeff Zaroyko : mmdevapi/tests: Fix a failing test for Vista/W2k8.

Alexandre Julliard julliard at winehq.org
Fri Mar 5 09:42:55 CST 2010


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

Author: Jeff Zaroyko <jeffz at jeffz.name>
Date:   Fri Mar  5 17:00:00 2010 +1100

mmdevapi/tests: Fix a failing test for Vista/W2k8.

---

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

diff --git a/dlls/mmdevapi/tests/render.c b/dlls/mmdevapi/tests/render.c
index 7813056..05d71b7 100644
--- a/dlls/mmdevapi/tests/render.c
+++ b/dlls/mmdevapi/tests/render.c
@@ -199,7 +199,9 @@ static void test_audioclient(IAudioClient *ac)
     ok(hr == E_INVALIDARG, "SetEventHandle(NULL) returns %08x\n", hr);
 
     hr = IAudioClient_SetEventHandle(ac, handle);
-    ok(hr == AUDCLNT_E_EVENTHANDLE_NOT_EXPECTED, "SetEventHandle returns %08x\n", hr);
+    ok(hr == AUDCLNT_E_EVENTHANDLE_NOT_EXPECTED ||
+       hr == HRESULT_FROM_WIN32(ERROR_INVALID_NAME)
+       , "SetEventHandle returns %08x\n", hr);
 
     CloseHandle(handle);
     CoTaskMemFree(pwfx);




More information about the wine-cvs mailing list