mirror of
https://github.com/reactos/reactos.git
synced 2025-07-30 22:01:43 +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…
Add table
Add a link
Reference in a new issue