From c87f207f4eee0b2c7b8f04a3075a3b1c3d76f4b3 Mon Sep 17 00:00:00 2001 From: David Reid Date: Thu, 7 Aug 2025 13:23:35 +1000 Subject: [PATCH] Win32: Use `CreateSemaphore()` instead of `CreateSemaphoreW()` This should improve compiler compatibility for those that do not define `CreateSemaphoreW()`, such as NXDK. --- miniaudio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miniaudio.h b/miniaudio.h index c864dd9b..ba279a96 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -17852,7 +17852,7 @@ static ma_result ma_event_signal__win32(ma_event* pEvent) static ma_result ma_semaphore_init__win32(int initialValue, ma_semaphore* pSemaphore) { - *pSemaphore = CreateSemaphoreW(NULL, (LONG)initialValue, LONG_MAX, NULL); + *pSemaphore = CreateSemaphore(NULL, (LONG)initialValue, LONG_MAX, NULL); if (*pSemaphore == NULL) { return ma_result_from_GetLastError(GetLastError()); }