SDL: wasapi: Patched to compile. (31404)

From 31404a9dcb4fea8510815dbd96240b99a61e4b4d Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Tue, 10 Feb 2026 11:17:19 -0500
Subject: [PATCH] wasapi: Patched to compile.

---
 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 1c4b77e055622..c01f007ff1550 100644
--- a/src/audio/wasapi/SDL_wasapi.c
+++ b/src/audio/wasapi/SDL_wasapi.c
@@ -592,7 +592,7 @@ static int WASAPI_RecordDevice(SDL_AudioDevice *device, void *buffer, int buflen
     UINT32 frames = 0;
     DWORD flags = 0;
 
-    while (device->hidden->capture && !SDL_GetAtomicInt(&device->hidden->device_disconnecting))
+    while (device->hidden->capture && !SDL_GetAtomicInt(&device->hidden->device_disconnecting)) {
         const HRESULT ret = IAudioCaptureClient_GetBuffer(device->hidden->capture, &ptr, &frames, &flags, NULL, NULL);
         if (ret == AUDCLNT_S_BUFFER_EMPTY) {
             return 0;  // in theory we should have waited until there was data, but oh well, we'll go back to waiting. Returning 0 is safe in SDL3.