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

This commit is contained in:
Jeff Zaroyko 2010-03-05 17:00:00 +11:00 committed by Alexandre Julliard
parent 072951e2f8
commit 0a6ac95736

View file

@ -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);