mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Tier0: fix CThreadFastMutex bug
Must break if ThreadInterlockedCompareExchange returns null.
This commit is contained in:
parent
33e42b3374
commit
65cdc0c75b
@ -43,7 +43,7 @@ int CThreadFastMutex::Lock(void)
|
||||
|
||||
result = ThreadInterlockedCompareExchange((volatile LONG*)&m_lAddend, 0, 1);
|
||||
|
||||
if (result)
|
||||
if (!result)
|
||||
break;
|
||||
|
||||
if (++cycle > 5)
|
||||
|
Loading…
x
Reference in New Issue
Block a user