Set SysThreadCreated to TRUE when possible (used in DisplayBootBitmap() function)
[reactos.git] / reactos / ntoskrnl / ps / psmgr.c
index fb693f4..e2b138c 100644 (file)
@@ -13,6 +13,7 @@
 #include <internal/debug.h>
 
 extern ULONG ExpInitializationPhase;
+extern BOOLEAN SysThreadCreated;
 
 GENERIC_MAPPING PspProcessMapping =
 {
@@ -581,6 +582,7 @@ PspInitPhase0(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
                               (PVOID*)&SysThread,
                               NULL);
     ZwClose(SysThreadHandle);
+    SysThreadCreated = TRUE;
 
     /* Return success */
     return TRUE;