mirror of https://github.com/acidanthera/audk.git
ShellPkg: Fix line responsible for deleting “cwd” variable when exit shell.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Phillips <chrisp@hp.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13943 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
9cdadb7c94
commit
926704714e
|
@ -441,7 +441,7 @@ UefiMain (
|
|||
}
|
||||
if (ShellInfoObject.NewEfiShellProtocol != NULL){
|
||||
if (ShellInfoObject.NewEfiShellProtocol->IsRootShell()){
|
||||
ShellInfoObject.NewEfiShellProtocol->SetEnv(L"cwd", L"", TRUE);
|
||||
InternalEfiShellSetEnv(L"cwd", NULL, TRUE);
|
||||
}
|
||||
CleanUpShellProtocol(ShellInfoObject.NewEfiShellProtocol);
|
||||
DEBUG_CODE(ShellInfoObject.NewEfiShellProtocol = NULL;);
|
||||
|
|
Loading…
Reference in New Issue