[ros-diffs] [ion] 17222: - Fix broken loop, this fixes the WINE thread wait tests

ion at svn.reactos.com ion at svn.reactos.com
Tue Aug 9 03:07:23 CEST 2005


- Fix broken loop, this fixes the WINE thread wait tests
Modified: trunk/reactos/ntoskrnl/ob/wait.c
  _____  

Modified: trunk/reactos/ntoskrnl/ob/wait.c
--- trunk/reactos/ntoskrnl/ob/wait.c	2005-08-09 00:02:24 UTC (rev
17221)
+++ trunk/reactos/ntoskrnl/ob/wait.c	2005-08-09 01:07:06 UTC (rev
17222)
@@ -182,11 +182,14 @@

     /* For a Waitall, we can't have the same object more then once */
     if (WaitType == WaitAll)
     {
+        /* Clear the main loop variable */
+        i = 0;
+
         /* Start the loop */
         do
         {
             /* Check the current and forward object */
-            for (i = 0, j = i + 1; j < ObjectCount; j++)
+            for (j = i + 1; j < ObjectCount; j++)
             {
                 /* Make sure they don't match */
                 if (WaitObjects[i] == WaitObjects[j])
@@ -244,6 +247,7 @@
     if (LockInUse) KeLeaveCriticalRegion();
 
     /* Return status */
+    DPRINT1("Returning: %x\n", Status);
     return Status;
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050809/11f6c1ec/attachment.html


More information about the Ros-diffs mailing list