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:
jcarsey 2012-11-14 23:43:33 +00:00
parent 9cdadb7c94
commit 926704714e
1 changed files with 1 additions and 1 deletions

View File

@ -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;);