Tier0: fix CThreadFastMutex bug

Must break if ThreadInterlockedCompareExchange returns null.
This commit is contained in:
Kawe Mazidjatari 2024-01-16 20:57:28 +01:00
parent 33e42b3374
commit 65cdc0c75b

View File

@ -43,7 +43,7 @@ int CThreadFastMutex::Lock(void)
result = ThreadInterlockedCompareExchange((volatile LONG*)&m_lAddend, 0, 1);
if (result)
if (!result)
break;
if (++cycle > 5)