mmdevapi/tests: Fix a crash when function IMMDevice_Activate fails.
This commit is contained in:
parent
0746767d91
commit
5597252606
|
@ -915,6 +915,8 @@ static void test_volume_dependence(void)
|
|||
hr = IMMDevice_Activate(dev, &IID_IAudioClient, CLSCTX_INPROC_SERVER,
|
||||
NULL, (void**)&ac);
|
||||
ok(hr == S_OK, "Activation failed with %08x\n", hr);
|
||||
if(hr != S_OK)
|
||||
return;
|
||||
|
||||
hr = IAudioClient_GetMixFormat(ac, &fmt);
|
||||
ok(hr == S_OK, "GetMixFormat failed: %08x\n", hr);
|
||||
|
|
Loading…
Reference in New Issue