From 9cf45187023abda4e145ee66a493774b299d2d52 Mon Sep 17 00:00:00 2001 From: Huajing Li Date: Mon, 28 Aug 2017 11:23:39 +0800 Subject: ShellPkg: Rename gShellCurDir to gShellCurMapping Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Huajing Li Reviewed-by: Ruiyu Ni Reviewed-by Jaben Carsey --- ShellPkg/Application/Shell/ShellProtocol.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ShellPkg/Application') diff --git a/ShellPkg/Application/Shell/ShellProtocol.c b/ShellPkg/Application/Shell/ShellProtocol.c index 991fb58ca7..40e5e653ae 100644 --- a/ShellPkg/Application/Shell/ShellProtocol.c +++ b/ShellPkg/Application/Shell/ShellProtocol.c @@ -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); -- cgit v1.2.3