From f7dc63bcc3e7af853934d4c96618616087a56412 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Wed, 18 Oct 2023 18:32:00 +0300 Subject: [PATCH] audio: another windows wasapi build fix. --- src/audio/wasapi/SDL_wasapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio/wasapi/SDL_wasapi.c b/src/audio/wasapi/SDL_wasapi.c index 04295cceac..620c15fbe1 100644 --- a/src/audio/wasapi/SDL_wasapi.c +++ b/src/audio/wasapi/SDL_wasapi.c @@ -368,7 +368,7 @@ static int ActivateWasapiDevice(SDL_AudioDevice *device) { // this blocks because we're either being notified from a background thread or we're running during device open, // both of which won't deadlock vs the device thread. - int rc; + int rc = -1; return ((WASAPI_ProxyToManagementThread(mgmtthrtask_ActivateDevice, device, &rc) < 0) || (rc < 0)) ? -1 : 0; }