diff --git a/src/Nazara/Core/Win32/SemaphoreImpl.cpp b/src/Nazara/Core/Win32/SemaphoreImpl.cpp index b126c13ea..2561f4846 100644 --- a/src/Nazara/Core/Win32/SemaphoreImpl.cpp +++ b/src/Nazara/Core/Win32/SemaphoreImpl.cpp @@ -10,7 +10,7 @@ NzSemaphoreImpl::NzSemaphoreImpl(unsigned int count) { - m_semaphore = CreateSemaphore(nullptr, count, std::numeric_limits::max(), nullptr); + m_semaphore = CreateSemaphoreW(nullptr, count, std::numeric_limits::max(), nullptr); if (!m_semaphore) NazaraError("Failed to create semaphore: " + NzError::GetLastSystemError()); }