Filled-in missing 'FirstThread->Tcb.Queue' initialization
[reactos.git] / ntoskrnl / ps / thread.c
index b75e750..a1603f0 100644 (file)
@@ -453,6 +453,8 @@ PsInitThreadManagment(VOID)
                      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);