diff --git a/reactos/include/ntos/ntdef.h b/reactos/include/ntos/ntdef.h index 5bdc58054d5..ccc5369f3b8 100644 --- a/reactos/include/ntos/ntdef.h +++ b/reactos/include/ntos/ntdef.h @@ -11,7 +11,9 @@ #ifndef __INCLUDE_NTDEF_H #define __INCLUDE_NTDEF_H -#define EX_MAXIMUM_WAIT_OBJECTS (64) +#ifndef _USE_W32API +#define MAXIMUM_WAIT_OBJECTS (64) +#endif #if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus) # define TYPE_ALIGNMENT(t) __alignof(t) diff --git a/reactos/include/ntos/zw.h b/reactos/include/ntos/zw.h index 9d75ed7464e..1edab4a0869 100755 --- a/reactos/include/ntos/zw.h +++ b/reactos/include/ntos/zw.h @@ -1,4 +1,4 @@ -/* $Id: zw.h,v 1.40 2004/12/30 08:05:10 hyperion Exp $ +/* $Id$ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -5241,7 +5241,7 @@ NTSTATUS STDCALL NtDelayExecution( IN ULONG Alertable, - IN TIME *Interval + IN LARGE_INTEGER *Interval ); /* diff --git a/reactos/ntoskrnl/ke/timer.c b/reactos/ntoskrnl/ke/timer.c index 206d17da0da..28a44c32a1b 100644 --- a/reactos/ntoskrnl/ke/timer.c +++ b/reactos/ntoskrnl/ke/timer.c @@ -1,4 +1,4 @@ -/* $Id: timer.c,v 1.93 2004/12/24 17:06:58 navaraf Exp $ +/* $Id$ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -138,7 +138,7 @@ NtQueryPerformanceCounter(IN PLARGE_INTEGER Counter, NTSTATUS STDCALL NtDelayExecution(IN ULONG Alertable, - IN TIME* Interval) + IN LARGE_INTEGER* Interval) { NTSTATUS Status; LARGE_INTEGER Timeout; diff --git a/reactos/ntoskrnl/ke/wait.c b/reactos/ntoskrnl/ke/wait.c index 5feb98bc547..7ee33300f2b 100644 --- a/reactos/ntoskrnl/ke/wait.c +++ b/reactos/ntoskrnl/ke/wait.c @@ -492,7 +492,7 @@ KeWaitForMultipleObjects(ULONG Count, DPRINT("Entering KeWaitForMultipleObjects(Count %lu Object[] %p) " "PsGetCurrentThread() %x\n", Count, Object, PsGetCurrentThread()); - ASSERT(0 < Count && Count <= EX_MAXIMUM_WAIT_OBJECTS); + ASSERT(0 < Count && Count <= MAXIMUM_WAIT_OBJECTS); CurrentThread = KeGetCurrentThread(); @@ -510,7 +510,7 @@ KeWaitForMultipleObjects(ULONG Count, } else { - if (Count > EX_MAXIMUM_WAIT_OBJECTS) + if (Count > MAXIMUM_WAIT_OBJECTS) { DPRINT("(%s:%d) Too many objects!\n", __FILE__, __LINE__); return (STATUS_UNSUCCESSFUL); @@ -762,8 +762,8 @@ NtWaitForMultipleObjects(IN ULONG Count, IN BOOLEAN Alertable, IN PLARGE_INTEGER UnsafeTime) { - KWAIT_BLOCK WaitBlockArray[EX_MAXIMUM_WAIT_OBJECTS]; - PVOID ObjectPtrArray[EX_MAXIMUM_WAIT_OBJECTS]; + KWAIT_BLOCK WaitBlockArray[MAXIMUM_WAIT_OBJECTS]; + PVOID ObjectPtrArray[MAXIMUM_WAIT_OBJECTS]; NTSTATUS Status; ULONG i, j; KPROCESSOR_MODE WaitMode; @@ -772,7 +772,7 @@ NtWaitForMultipleObjects(IN ULONG Count, DPRINT("NtWaitForMultipleObjects(Count %lu Object[] %x, Alertable %d, " "Time %x)\n", Count,Object,Alertable,Time); - if (Count > EX_MAXIMUM_WAIT_OBJECTS) + if (Count > MAXIMUM_WAIT_OBJECTS) return STATUS_UNSUCCESSFUL; if (0 == Count) return STATUS_INVALID_PARAMETER; diff --git a/reactos/ntoskrnl/rtl/rangelist.c b/reactos/ntoskrnl/rtl/rangelist.c index 7a9ac227e80..3e1724768ad 100644 --- a/reactos/ntoskrnl/rtl/rangelist.c +++ b/reactos/ntoskrnl/rtl/rangelist.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: rangelist.c,v 1.3 2004/10/22 16:30:58 navaraf Exp $ +/* $Id$ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries