Fix boost loop
Modified: trunk/reactos/ntoskrnl/ex/resource.c
_____
Modified: trunk/reactos/ntoskrnl/ex/resource.c
--- trunk/reactos/ntoskrnl/ex/resource.c 2006-01-12 22:16:04 UTC
(rev 20822)
+++ trunk/reactos/ntoskrnl/ex/resource.c 2006-01-13 00:15:31 UTC
(rev 20823)
@@ -707,9 +707,13 @@
Size = Owner->TableSize;
for (i = 1; i < Size; i++)
{
- /* Boot every thread in the table */
- OwnerThread = (PKTHREAD)
-
Resource->OwnerThreads[1].OwnerThread;
+ /* Move to next entry */
+ Owner++
+
+ /* Get the thread */
+ OwnerThread =
(PKTHREAD)OwnerEntry->OwnerThread;
+
+ /* Boost it */
if (OwnerThread) ExpBoostOwnerThread(Thread,
OwnerThread);
}
}