[ros-diffs] [cgutman] 53302: [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

cgutman at svn.reactos.org cgutman at svn.reactos.org
Thu Aug 18 18:06:08 UTC 2011


Author: cgutman
Date: Thu Aug 18 18:06:07 2011
New Revision: 53302

URL: http://svn.reactos.org/svn/reactos?rev=53302&view=rev
Log:
[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

Modified:
    trunk/reactos/ntoskrnl/io/iomgr/remlock.c

Modified: trunk/reactos/ntoskrnl/io/iomgr/remlock.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/iomgr/remlock.c?rev=53302&r1=53301&r2=53302&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/io/iomgr/remlock.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/io/iomgr/remlock.c [iso-8859-1] Thu Aug 18 18:06:07 2011
@@ -170,8 +170,8 @@
         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);




More information about the Ros-diffs mailing list