Fix crash during boot
Modified: trunk/reactos/lib/rtl/env.c
_____
Modified: trunk/reactos/lib/rtl/env.c
--- trunk/reactos/lib/rtl/env.c 2005-01-18 10:08:31 UTC (rev 13118)
+++ trunk/reactos/lib/rtl/env.c 2005-01-18 10:41:49 UTC (rev 13119)
@@ -533,6 +533,10 @@
if (Environment == NULL)
{
+ if (NtCurrentPeb() == NULL)
+ {
+ return(STATUS_VARIABLE_NOT_FOUND);
+ }
Environment = NtCurrentPeb()->ProcessParameters->Environment;
SysEnvUsed = TRUE;
}
Show replies by date