reactos/lib/kernel32/synch
diff -u -r1.31 -r1.32
--- wait.c 14 Nov 2004 18:47:10 -0000 1.31
+++ wait.c 4 Dec 2004 19:31:26 -0000 1.32
@@ -1,4 +1,4 @@
-/* $Id: wait.c,v 1.31 2004/11/14 18:47:10 hbirr Exp $
+/* $Id: wait.c,v 1.32 2004/12/04 19:31:26 navaraf Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
@@ -220,22 +220,13 @@
RtlFreeHeap(RtlGetProcessHeap(), 0, HandleBuffer);
}
- if (Status == STATUS_TIMEOUT)
- {
- return WAIT_TIMEOUT;
- }
- else if (((Status >= WAIT_OBJECT_0) &&
- (Status <= WAIT_OBJECT_0 + nCount - 1)) ||
- ((Status >= WAIT_ABANDONED_0) &&
- (Status <= WAIT_ABANDONED_0 + nCount - 1)))
+ if (HIWORD(Status))
{
- return Status;
+ SetLastErrorByStatus (Status);
+ return WAIT_FAILED;
}
- DPRINT("Status %lx\n", Status);
- SetLastErrorByStatus (Status);
-
- return WAIT_FAILED;
+ return Status;
}