From cd9f2f79640d8488619bbfd751c7a519272eccfb Mon Sep 17 00:00:00 2001 From: Alex Ionescu Date: Sat, 1 Jan 2005 04:55:11 +0000 Subject: [PATCH] Fix work item enumaration values. svn path=/trunk/; revision=12679 --- reactos/include/ddk/defines.h | 10 ---------- reactos/include/ddk/exfuncs.h | 2 +- reactos/include/ddk/extypes.h | 10 ++++++++-- reactos/ntoskrnl/ex/time.c | 4 ++-- reactos/ntoskrnl/ex/work.c | 5 ++++- 5 files changed, 15 insertions(+), 16 deletions(-) diff --git a/reactos/include/ddk/defines.h b/reactos/include/ddk/defines.h index de64b724a3c..bb236ae9f6e 100644 --- a/reactos/include/ddk/defines.h +++ b/reactos/include/ddk/defines.h @@ -17,16 +17,6 @@ */ #define NR_PRIORITY_LEVELS (32) -/* - * PURPOSE: Type of queue to insert a work item in - */ -enum -{ - CriticalWorkQueue, - DelayedWorkQueue, - HyperCriticalWorkQueue, -}; - /* * Types of memory to allocate */ diff --git a/reactos/include/ddk/exfuncs.h b/reactos/include/ddk/exfuncs.h index 3557b5d0e92..5370d4e09ee 100644 --- a/reactos/include/ddk/exfuncs.h +++ b/reactos/include/ddk/exfuncs.h @@ -699,7 +699,7 @@ ExSetResourceOwnerPointer ( IN PVOID OwnerPointer ); -VOID +ULONG STDCALL ExSetTimerResolution ( IN ULONG DesiredTime, diff --git a/reactos/include/ddk/extypes.h b/reactos/include/ddk/extypes.h index 0caef71a4b1..63cb032e111 100644 --- a/reactos/include/ddk/extypes.h +++ b/reactos/include/ddk/extypes.h @@ -1,10 +1,16 @@ -/* $Id: extypes.h,v 1.25 2004/10/22 22:49:00 weiden Exp $ */ +/* $Id$ */ #ifndef __INCLUDE_DDK_EXTYPES_H #define __INCLUDE_DDK_EXTYPES_H typedef ULONG INTERLOCKED_RESULT; -typedef ULONG WORK_QUEUE_TYPE; + +typedef enum _WORK_QUEUE_TYPE { + CriticalWorkQueue, + DelayedWorkQueue, + HyperCriticalWorkQueue, + MaximumWorkQueue +} WORK_QUEUE_TYPE; typedef ULONG_PTR ERESOURCE_THREAD, *PERESOURCE_THREAD; diff --git a/reactos/ntoskrnl/ex/time.c b/reactos/ntoskrnl/ex/time.c index 6241bc7951f..3ba5c01032c 100644 --- a/reactos/ntoskrnl/ex/time.c +++ b/reactos/ntoskrnl/ex/time.c @@ -1,4 +1,4 @@ -/* $Id: time.c,v 1.28 2004/12/05 00:20:22 navaraf Exp $ +/* $Id$ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -228,7 +228,7 @@ ExLocalTimeToSystemTime ( /* * @unimplemented */ -VOID +ULONG STDCALL ExSetTimerResolution ( IN ULONG DesiredTime, diff --git a/reactos/ntoskrnl/ex/work.c b/reactos/ntoskrnl/ex/work.c index 7566cd0e331..94fbba3c0ce 100644 --- a/reactos/ntoskrnl/ex/work.c +++ b/reactos/ntoskrnl/ex/work.c @@ -1,4 +1,4 @@ -/* $Id: work.c,v 1.24 2004/12/24 02:09:12 gdalsnes Exp $ +/* $Id$ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -172,6 +172,9 @@ ExQueueWorkItem (PWORK_QUEUE_ITEM WorkItem, &WorkItem->List ); break; + + default: + break; } }