mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Win32: Use CreateSemaphore() instead of CreateSemaphoreW()
This should improve compiler compatibility for those that do not define `CreateSemaphoreW()`, such as NXDK.
This commit is contained in:
+1
-1
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user