fixed uninitialized variable warnings
authorThomas Bluemel <thomas@reactsoft.com>
Fri, 6 Jan 2006 11:58:17 +0000 (11:58 +0000)
committerThomas Bluemel <thomas@reactsoft.com>
Fri, 6 Jan 2006 11:58:17 +0000 (11:58 +0000)
svn path=/trunk/; revision=20608

reactos/ntoskrnl/ke/wait.c

index 3ce08cd..6b0b749 100644 (file)
@@ -105,7 +105,7 @@ KeDelayExecutionThread(KPROCESSOR_MODE WaitMode,
     PKWAIT_BLOCK TimerWaitBlock;
     PKTIMER ThreadTimer;
     PKTHREAD CurrentThread = KeGetCurrentThread();
     PKWAIT_BLOCK TimerWaitBlock;
     PKTIMER ThreadTimer;
     PKTHREAD CurrentThread = KeGetCurrentThread();
-    NTSTATUS WaitStatus;
+    NTSTATUS WaitStatus = STATUS_SUCCESS;
     DPRINT("Entering KeDelayExecutionThread\n");
 
     /* Check if the lock is already held */
     DPRINT("Entering KeDelayExecutionThread\n");
 
     /* Check if the lock is already held */
@@ -238,7 +238,7 @@ KeWaitForSingleObject(PVOID Object,
     PKWAIT_BLOCK TimerWaitBlock;
     PKTIMER ThreadTimer;
     PKTHREAD CurrentThread = KeGetCurrentThread();
     PKWAIT_BLOCK TimerWaitBlock;
     PKTIMER ThreadTimer;
     PKTHREAD CurrentThread = KeGetCurrentThread();
-    NTSTATUS WaitStatus;
+    NTSTATUS WaitStatus = STATUS_SUCCESS;
     DPRINT("Entering KeWaitForSingleObject\n");
 
     /* Check if the lock is already held */
     DPRINT("Entering KeWaitForSingleObject\n");
 
     /* Check if the lock is already held */
@@ -436,7 +436,7 @@ KeWaitForMultipleObjects(ULONG Count,
     PKTHREAD CurrentThread = KeGetCurrentThread();
     ULONG AllObjectsSignaled;
     ULONG WaitIndex;
     PKTHREAD CurrentThread = KeGetCurrentThread();
     ULONG AllObjectsSignaled;
     ULONG WaitIndex;
-    NTSTATUS WaitStatus;
+    NTSTATUS WaitStatus = STATUS_SUCCESS;
     DPRINT("Entering KeWaitForMultipleObjects(Count %lu Object[] %p) "
            "PsGetCurrentThread() %x, Timeout %x\n",
            Count, Object, PsGetCurrentThread(), Timeout);
     DPRINT("Entering KeWaitForMultipleObjects(Count %lu Object[] %p) "
            "PsGetCurrentThread() %x, Timeout %x\n",
            Count, Object, PsGetCurrentThread(), Timeout);