Pārlūkot izejas kodu

audio: another windows wasapi build fix.

Ozkan Sezer 1 gadu atpakaļ
vecāks
revīzija
f7dc63bcc3
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/audio/wasapi/SDL_wasapi.c

+ 1 - 1
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;
 }