make all calls to winapi format-agnostic (#1470)

This commit is contained in:
Ramen2X
2025-05-11 15:03:32 -04:00
committed by GitHub
parent 6968a3ba00
commit 2b3e7176d3
13 changed files with 66 additions and 66 deletions

View File

@@ -15,7 +15,7 @@ MxCriticalSection::MxCriticalSection()
HANDLE mutex;
if (g_useMutex) {
mutex = CreateMutexA(NULL, FALSE, NULL);
mutex = CreateMutex(NULL, FALSE, NULL);
m_mutex = mutex;
}
else {

View File

@@ -16,7 +16,7 @@ MxResult MxSemaphore::Init(MxU32 p_initialCount, MxU32 p_maxCount)
{
MxResult result = FAILURE;
if ((m_hSemaphore = CreateSemaphoreA(NULL, p_initialCount, p_maxCount, NULL))) {
if ((m_hSemaphore = CreateSemaphore(NULL, p_initialCount, p_maxCount, NULL))) {
result = SUCCESS;
}