Replaced CreateSemaphore call by CreateSemaphoreW
Former-commit-id: 8f1897c846bc08d79a7298b1d95a2319c1aefffd
This commit is contained in:
parent
4d27f12fec
commit
c5b31d4f03
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
NzSemaphoreImpl::NzSemaphoreImpl(unsigned int count)
|
NzSemaphoreImpl::NzSemaphoreImpl(unsigned int count)
|
||||||
{
|
{
|
||||||
m_semaphore = CreateSemaphore(nullptr, count, std::numeric_limits<LONG>::max(), nullptr);
|
m_semaphore = CreateSemaphoreW(nullptr, count, std::numeric_limits<LONG>::max(), nullptr);
|
||||||
if (!m_semaphore)
|
if (!m_semaphore)
|
||||||
NazaraError("Failed to create semaphore: " + NzError::GetLastSystemError());
|
NazaraError("Failed to create semaphore: " + NzError::GetLastSystemError());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue