<html>
<head>
<style>
<!--
body { background-color:#ffffff }
.file { border:1px solid #eeeeee; margin-top:1em; margin-bottom:1em }
.pathname { font-family:monospace; float:right }
.fileheader { margin-bottom:.5em }
.diff { margin:0 }
.tasklist { padding:4px; border:1px dashed #000000; margin-top:1em }
.tasklist ul { margin-top:0; margin-bottom:0 }
tr.alt { background-color:#eeeeee }
#added { background-color:#ddffdd }
#addedchars { background-color:#99ff99; font-weight:bolder }
tr.alt #added { background-color:#ccf7cc }
#removed { background-color:#ffdddd }
#removedchars { background-color:#ff9999; font-weight:bolder }
tr.alt #removed { background-color:#f7cccc }
#info { color:#888888 }
#context { background-color:#eeeeee }
td {padding-left:.3em; padding-right:.3em }
tr.head { border-bottom-width:1px; border-bottom-style:solid }
tr.head td { padding:0; padding-top:.2em }
.task { background-color:#ffff00 }
.comment { padding:4px; border:1px dashed #000000; background-color:#ffffdd }
.error { color:red }
hr { border-width:0px; height:2px; background:black }
-->
</style>
</head>
<body>
<pre class="comment">- Fix broken loop, this fixes the WINE thread wait tests</pre><pre class="diff" id="context">Modified: trunk/reactos/ntoskrnl/ob/wait.c
</pre><hr /><div class="file">
<div class="fileheader"><big><b>Modified: trunk/reactos/ntoskrnl/ob/wait.c</b></big></div>
<pre class="diff"><small id="info">--- 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 @@
</small></pre><pre class="diff" id="context"> &nbsp; &nbsp; /* For a Waitall, we can't have the same object more then once */
 &nbsp; &nbsp; if (WaitType == WaitAll)
 &nbsp; &nbsp; {
</pre><pre class="diff" id="added">+ &nbsp; &nbsp; &nbsp; &nbsp;/* Clear the main loop variable */
+ &nbsp; &nbsp; &nbsp; &nbsp;i = 0;
+
</pre><pre class="diff" id="context"> &nbsp; &nbsp; &nbsp; &nbsp; /* Start the loop */
 &nbsp; &nbsp; &nbsp; &nbsp; do
 &nbsp; &nbsp; &nbsp; &nbsp; {
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /* Check the current and forward object */
</pre><pre class="diff" id="removed">- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for (<span id="removedchars">i = 0, </span>j = i + 1; j &lt; ObjectCount; j++)
</pre><pre class="diff" id="added">+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for (j = i + 1; j &lt; ObjectCount; j++)
</pre><pre class="diff" id="context"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /* Make sure they don't match */
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (WaitObjects[i] == WaitObjects[j])
@@ -244,6 +247,7 @@
</pre><pre class="diff" id="context"> &nbsp; &nbsp; if (LockInUse) KeLeaveCriticalRegion();
 
 &nbsp; &nbsp; /* Return status */
</pre><pre class="diff" id="added">+ &nbsp; &nbsp;DPRINT1(&quot;Returning: %x\n&quot;, Status);
</pre><pre class="diff" id="context"> &nbsp; &nbsp; return Status;
 }
 
</pre>
</div>

</body>
</html>