From 2a5bda2b14b843f5eba5178272aeb0c17bfad2ce Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 11 Dec 2017 20:40:59 +0100 Subject: [PATCH] C89_BUILD fix --- audio/drivers/wasapi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/audio/drivers/wasapi.c b/audio/drivers/wasapi.c index 973be6411c..e11d8056e0 100644 --- a/audio/drivers/wasapi.c +++ b/audio/drivers/wasapi.c @@ -336,8 +336,9 @@ static IAudioClient *wasapi_init_client_sh(IMMDevice *device, if (hr == AUDCLNT_E_ALREADY_INITIALIZED) { + HRESULT hr; WASAPI_RELEASE(client); - HRESULT hr = _IMMDevice_Activate(device, + hr = _IMMDevice_Activate(device, IID_IAudioClient, CLSCTX_ALL, NULL, (void**)&client); WASAPI_HR_CHECK(hr, "IMMDevice::Activate", return NULL);