[NTOSKRNL]

- Fix a typo in a remove lock timeout check
- Fixes breaking into kdbg randomly when a caller specifies no timeout on their remove lock

svn path=/trunk/; revision=53302
This commit is contained in:
Cameron Gutman 2011-08-18 18:06:07 +00:00
parent 320ad29ff4
commit 4cf82b565f

View file

@ -170,8 +170,8 @@ IoReleaseRemoveLockEx(IN PIO_REMOVE_LOCK RemoveLock,
while (TrackingBlock != NULL)
{
/* First of all, check if the lock was locked for too long */
if (TrackingBlock->LockMoment.QuadPart &&
CurrentMoment.QuadPart - TrackingBlock->LockMoment.QuadPart > Lock->Dbg.MaxLockedTicks)
if (Lock->Dbg.MaxLockedTicks &&
CurrentMoment.QuadPart - TrackingBlock->LockMoment.QuadPart > Lock->Dbg.MaxLockedTicks)
{
DPRINT("Lock %#08lx (with tag %#08lx) was supposed to be held at max %I64d ticks but lasted longer\n",
Lock, TrackingBlock->Tag, Lock->Dbg.MaxLockedTicks);