diff --git a/src/common/classes/locks.h b/src/common/classes/locks.h index 01b3f194c2..ee8a81befb 100644 --- a/src/common/classes/locks.h +++ b/src/common/classes/locks.h @@ -119,7 +119,7 @@ public: void leave() { #ifdef DEV_BUILD - if ((DWORD)spinlock.OwningThread != GetCurrentThreadId()) + if ((U_IPTR)spinlock.OwningThread != GetCurrentThreadId()) DebugBreak(); #endif LeaveCriticalSection(&spinlock);