initialize variables
Modified: trunk/reactos/ntoskrnl/ps/suspend.c
_____
Modified: trunk/reactos/ntoskrnl/ps/suspend.c
--- trunk/reactos/ntoskrnl/ps/suspend.c 2005-03-30 00:44:52 UTC (rev
14383)
+++ trunk/reactos/ntoskrnl/ps/suspend.c 2005-03-30 20:19:47 UTC (rev
14384)
@@ -36,11 +36,13 @@
IN PULONG SuspendCount OPTIONAL)
{
PETHREAD Thread;
- NTSTATUS Status;
ULONG Prev;
- KPROCESSOR_MODE PreviousMode = ExGetPreviousMode();
+ KPROCESSOR_MODE PreviousMode;
+ NTSTATUS Status = STATUS_SUCCESS;
PAGED_CODE();
+
+ PreviousMode = ExGetPreviousMode();
DPRINT("NtResumeThead(ThreadHandle %lx SuspendCount %p)\n",
ThreadHandle, SuspendCount);
@@ -115,12 +117,14 @@
IN PULONG PreviousSuspendCount OPTIONAL)
{
PETHREAD Thread;
- NTSTATUS Status;
ULONG Prev;
- KPROCESSOR_MODE PreviousMode = ExGetPreviousMode();
+ KPROCESSOR_MODE PreviousMode;
+ NTSTATUS Status = STATUS_SUCCESS;
PAGED_CODE();
+ PreviousMode = ExGetPreviousMode();
+
/* Check buffer validity */
if(PreviousSuspendCount && PreviousMode == UserMode) {