Fix boost loop
authorAlex Ionescu <aionescu@gmail.com>
Fri, 13 Jan 2006 00:15:31 +0000 (00:15 +0000)
committerAlex Ionescu <aionescu@gmail.com>
Fri, 13 Jan 2006 00:15:31 +0000 (00:15 +0000)
svn path=/trunk/; revision=20823

reactos/ntoskrnl/ex/resource.c

index c2e50ef..258db17 100644 (file)
@@ -707,9 +707,13 @@ ExpWaitForResource(IN PERESOURCE Resource,
                     Size = Owner->TableSize;
                     for (i = 1; i < Size; i++)
                     {
                     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);
                     }
                 }
                         if (OwnerThread) ExpBoostOwnerThread(Thread, OwnerThread);
                     }
                 }