git://git.jankratochvil.net
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Filled-in missing 'FirstThread->Tcb.Queue' initialization
[reactos.git]
/
ntoskrnl
/
ps
/
thread.c
diff --git
a/ntoskrnl/ps/thread.c
b/ntoskrnl/ps/thread.c
index
b75e750
..
a1603f0
100644
(file)
--- a/
ntoskrnl/ps/thread.c
+++ b/
ntoskrnl/ps/thread.c
@@
-453,6
+453,8
@@
PsInitThreadManagment(VOID)
THREAD_ALL_ACCESS,NULL, TRUE);
FirstThread->Tcb.State = THREAD_STATE_RUNNING;
FirstThread->Tcb.FreezeCount = 0;
THREAD_ALL_ACCESS,NULL, TRUE);
FirstThread->Tcb.State = THREAD_STATE_RUNNING;
FirstThread->Tcb.FreezeCount = 0;
+ FirstThread->Tcb.Queue = ExAllocatePool(NonPagedPool, sizeof(*FirstThread->Tcb.Queue));
+ KeInitializeQueue(FirstThread->Tcb.Queue, 0);
KeGetCurrentKPCR()->CurrentThread = (PVOID)FirstThread;
NtClose(FirstThreadHandle);
KeGetCurrentKPCR()->CurrentThread = (PVOID)FirstThread;
NtClose(FirstThreadHandle);