mirror of
https://github.com/love2d/megasource.git
synced 2026-08-16 08:11:25 +02:00
update OpenAL-Soft to 1.24.3.
This commit is contained in:
@@ -24,8 +24,6 @@
|
||||
|
||||
#include <system_error>
|
||||
|
||||
#include "opthelpers.h"
|
||||
|
||||
|
||||
#ifdef _WIN32
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
@@ -39,7 +37,8 @@ semaphore::semaphore(unsigned int initial)
|
||||
{
|
||||
if(initial > static_cast<unsigned int>(std::numeric_limits<int>::max()))
|
||||
throw std::system_error(std::make_error_code(std::errc::value_too_large));
|
||||
mSem = CreateSemaphore(nullptr, initial, std::numeric_limits<int>::max(), nullptr);
|
||||
mSem = CreateSemaphoreW(nullptr, static_cast<LONG>(initial), std::numeric_limits<int>::max(),
|
||||
nullptr);
|
||||
if(mSem == nullptr)
|
||||
throw std::system_error(std::make_error_code(std::errc::resource_unavailable_try_again));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user