Author: akhaldi
Date: Sun Jun 12 18:18:52 2011
New Revision: 52199
URL:
http://svn.reactos.org/svn/reactos?rev=52199&view=rev
Log:
[NTOSKRNL]
* Fix uninitialized data use. Spotted by gcc 4.6.0
Modified:
trunk/reactos/ntoskrnl/ke/queue.c
trunk/reactos/ntoskrnl/ke/wait.c
Modified: trunk/reactos/ntoskrnl/ke/queue.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/queue.c?rev=52…
==============================================================================
--- trunk/reactos/ntoskrnl/ke/queue.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ke/queue.c [iso-8859-1] Sun Jun 12 18:18:52 2011
@@ -247,7 +247,7 @@
PKTIMER Timer = &Thread->Timer;
BOOLEAN Swappable;
PLARGE_INTEGER OriginalDueTime = Timeout;
- LARGE_INTEGER DueTime, NewDueTime, InterruptTime;
+ LARGE_INTEGER DueTime = {0,0}, NewDueTime, InterruptTime;
ULONG Hand = 0;
ASSERT_QUEUE(Queue);
ASSERT_IRQL_LESS_OR_EQUAL(DISPATCH_LEVEL);
Modified: trunk/reactos/ntoskrnl/ke/wait.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/wait.c?rev=521…
==============================================================================
--- trunk/reactos/ntoskrnl/ke/wait.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ke/wait.c [iso-8859-1] Sun Jun 12 18:18:52 2011
@@ -413,7 +413,7 @@
PKTIMER Timer = &Thread->Timer;
NTSTATUS WaitStatus;
BOOLEAN Swappable;
- LARGE_INTEGER DueTime, NewDueTime, InterruptTime;
+ LARGE_INTEGER DueTime = {0,0}, NewDueTime, InterruptTime;
PLARGE_INTEGER OriginalDueTime = Timeout;
ULONG Hand = 0;
@@ -580,7 +580,7 @@
NTSTATUS WaitStatus = STATUS_SUCCESS;
BOOLEAN Swappable;
PLARGE_INTEGER OriginalDueTime = Timeout;
- LARGE_INTEGER DueTime, NewDueTime, InterruptTime;
+ LARGE_INTEGER DueTime = {0,0}, NewDueTime, InterruptTime;
ULONG Index, Hand = 0;
/* Make sure the Wait Count is valid */