]> git.proxmox.com Git - mirror_edk2.git/commit
ShellPkg: Fix bug that fails to change CWD after "map -r".
authorHuajing Li <huajing.li@intel.com>
Mon, 28 Aug 2017 03:47:52 +0000 (11:47 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Wed, 30 Aug 2017 03:42:49 +0000 (11:42 +0800)
commit055fafe1ce85013f1c868690ad06454a405c6af2
treef20544312c5f6ca98c5696f4d5e3f983a07bf060
parent9cf45187023abda4e145ee66a493774b299d2d52
ShellPkg: Fix bug that fails to change CWD after "map -r".

When "map -r" runs, the mapping list is re-created but
gShellCurMapping still points to the old mapping list which
is already destroyed.
The patch updates the gShellCurMapping to point to the correct
location in the new mapping list.

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>
ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.c