mirror of
https://github.com/reactos/reactos.git
synced 2025-07-29 14:02:05 +00:00
- Fix broken loop, this fixes the WINE thread wait tests
svn path=/trunk/; revision=17222
This commit is contained in:
parent
40602e6777
commit
69c49f71df
1 changed files with 5 additions and 1 deletions
|
@ -182,11 +182,14 @@ NtWaitForMultipleObjects(IN ULONG ObjectCount,
|
|||
/* 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 @@ Quickie:
|
|||
if (LockInUse) KeLeaveCriticalRegion();
|
||||
|
||||
/* Return status */
|
||||
DPRINT1("Returning: %x\n", Status);
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue