From 123471d303855fba61e8f511f52eb79c95002a42 Mon Sep 17 00:00:00 2001 From: David Reid Date: Sun, 29 Oct 2017 17:53:47 +1000 Subject: [PATCH] Fix a warning with the UWP build. --- mini_al.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mini_al.h b/mini_al.h index 47862d95..ec169b86 100644 --- a/mini_al.h +++ b/mini_al.h @@ -3030,6 +3030,7 @@ static mal_result mal_device_init__wasapi(mal_context* pContext, mal_device_type } #else IActivateAudioInterfaceAsyncOperation *pAsyncOp = NULL; + malCompletionHandler completionHandler; IID iid; if (pDeviceID != NULL) { @@ -3049,7 +3050,6 @@ static mal_result mal_device_init__wasapi(mal_context* pContext, mal_device_type goto done; } - malCompletionHandler completionHandler; result = completionHandler.Init(); if (result != MAL_SUCCESS) { mal_CoTaskMemFree(pContext, iidStr);