Commit c87f207f authored by David Reid's avatar David Reid

Win32: Use `CreateSemaphore()` instead of `CreateSemaphoreW()`

This should improve compiler compatibility for those that do not
define `CreateSemaphoreW()`, such as NXDK.
parent 02ae7e41
......@@ -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());
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment