Fix crash during boot

svn path=/trunk/; revision=13119
This commit is contained in:
Gé van Geldorp 2005-01-18 10:41:49 +00:00
parent 820d97c380
commit 058076c6a2

View file

@ -533,6 +533,10 @@ RtlQueryEnvironmentVariable_U(PWSTR Environment,
if (Environment == NULL)
{
if (NtCurrentPeb() == NULL)
{
return(STATUS_VARIABLE_NOT_FOUND);
}
Environment = NtCurrentPeb()->ProcessParameters->Environment;
SysEnvUsed = TRUE;
}