ShellPkg: Rename gShellCurDir to gShellCurMapping

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Huajing Li <huajing.li@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by Jaben Carsey <jaben.carsey@intel.com>
This commit is contained in:
Huajing Li
2017-08-28 11:23:39 +08:00
committed by Ruiyu Ni
parent 10cd747d33
commit 9cf4518702
3 changed files with 9 additions and 9 deletions

View File

@ -3079,10 +3079,10 @@ EfiShellSetCurDir(
// make that the current file system mapping
//
if (MapListItem != NULL) {
gShellCurDir = MapListItem;
gShellCurMapping = MapListItem;
}
} else {
MapListItem = gShellCurDir;
MapListItem = gShellCurMapping;
}
if (MapListItem == NULL) {
@ -3131,7 +3131,7 @@ EfiShellSetCurDir(
FreePool (DirectoryName);
return (EFI_INVALID_PARAMETER);
}
// gShellCurDir = MapListItem;
// gShellCurMapping = MapListItem;
if (DirectoryName != NULL) {
//
// change current dir on that file system
@ -3157,7 +3157,7 @@ EfiShellSetCurDir(
//
// if updated the current directory then update the environment variable
//
if (MapListItem == gShellCurDir) {
if (MapListItem == gShellCurMapping) {
Size = 0;
ASSERT((TempString == NULL && Size == 0) || (TempString != NULL));
StrnCatGrow(&TempString, &Size, MapListItem->MapName, 0);