* Fix wrong type for threadID

This commit is contained in:
Michaël Van Canneyt 2024-02-28 09:49:15 +01:00
parent f9b98092c4
commit 85494cdb1d

View File

@ -344,7 +344,7 @@ begin
// Forcibly unlock through any amount of recursive acquisitions!
PrevLockCount:=aLock^.LockCount;
aLock^.LockCount:=0;
aLock^.LockOwnerThreadID:=0;
aLock^.LockOwnerThreadID:=TThreadID(0);
LeaveCriticalSection(aLock^.CriticalSection);
Result:=aPulse.Wait(aTimeOut);