diff --git a/r5dev/tier0/threadtools.cpp b/r5dev/tier0/threadtools.cpp index ff03656e..6955b963 100644 --- a/r5dev/tier0/threadtools.cpp +++ b/r5dev/tier0/threadtools.cpp @@ -9,7 +9,7 @@ #include "core/stdafx.h" #include "threadtools.h" -LONG ThreadInterlockedCompareExchange64(LONG volatile* pDest, int64 value, int64 comperand) +int32 ThreadInterlockedCompareExchange(LONG volatile* pDest, int32 value, int32 comperand) { return _InterlockedCompareExchange(pDest, comperand, value); } diff --git a/r5dev/tier0/threadtools.h b/r5dev/tier0/threadtools.h index 19e5c825..248cfd90 100644 --- a/r5dev/tier0/threadtools.h +++ b/r5dev/tier0/threadtools.h @@ -65,7 +65,7 @@ ThreadId_t ThreadGetCurrentId(); // //----------------------------------------------------------------------------- -LONG ThreadInterlockedCompareExchange64(LONG volatile* pDest, int64 value, int64 comperand); +int32 ThreadInterlockedCompareExchange(LONG volatile* pDest, int32 value, int32 comperand); bool ThreadInterlockedAssignIf(LONG volatile* p, int32 value, int32 comperand); int64 ThreadInterlockedCompareExchange64(int64 volatile* pDest, int64 value, int64 comperand); bool ThreadInterlockedAssignIf64(int64 volatile* pDest, int64 value, int64 comperand);