mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
Fix crash during boot
svn path=/trunk/; revision=13119
This commit is contained in:
parent
820d97c380
commit
058076c6a2
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue