]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Application/Shell/Shell.c
ShellPkg: Fix line responsible for deleting “cwd” variable when exit shell.
[mirror_edk2.git] / ShellPkg / Application / Shell / Shell.c
index 3e4706c288dbd2cbac12ce28af1c34fbbfb73e10..b6b54efb5eacf25cc10fab70c14a0617c9dd7ebd 100644 (file)
@@ -441,7 +441,7 @@ UefiMain (
   }\r
   if (ShellInfoObject.NewEfiShellProtocol != NULL){\r
     if (ShellInfoObject.NewEfiShellProtocol->IsRootShell()){\r
-      ShellInfoObject.NewEfiShellProtocol->SetEnv(L"cwd", L"", TRUE);\r
+      InternalEfiShellSetEnv(L"cwd", NULL, TRUE);\r
     }\r
     CleanUpShellProtocol(ShellInfoObject.NewEfiShellProtocol);\r
     DEBUG_CODE(ShellInfoObject.NewEfiShellProtocol = NULL;);\r