Filled-in missing 'FirstThread->Tcb.Queue' initialization
authorshort <>
Tue, 8 Apr 2003 17:42:31 +0000 (17:42 +0000)
committershort <>
Tue, 8 Apr 2003 17:42:31 +0000 (17:42 +0000)
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);