summaryrefslogtreecommitdiffstats
path: root/ShellPkg/Application
diff options
context:
space:
mode:
authorEric Dong <eric.dong@intel.com>2015-09-01 01:06:08 +0000
committerydong10 <ydong10@Edk2>2015-09-01 01:06:08 +0000
commit4c33aace3fecc15ea6b95b5856a5b340ddeda07d (patch)
tree389fdd29afa0775957bce61d60ff0be3e456ad3d /ShellPkg/Application
parentc79de074b6a35ab514ec88bc2811845e6326fc0f (diff)
downloadedk2-4c33aace3fecc15ea6b95b5856a5b340ddeda07d.tar.gz
edk2-4c33aace3fecc15ea6b95b5856a5b340ddeda07d.tar.bz2
edk2-4c33aace3fecc15ea6b95b5856a5b340ddeda07d.zip
ShellPkg: Replace use case of deprecated function GetVariable with GetVariable2.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18368 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg/Application')
-rw-r--r--ShellPkg/Application/Shell/ShellProtocol.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ShellPkg/Application/Shell/ShellProtocol.c b/ShellPkg/Application/Shell/ShellProtocol.c
index 6a248522b5..28521ecc15 100644
--- a/ShellPkg/Application/Shell/ShellProtocol.c
+++ b/ShellPkg/Application/Shell/ShellProtocol.c
@@ -3221,6 +3221,7 @@ EfiShellGetAlias(
UINT32 Attribs;
EFI_STATUS Status;
CHAR16 *AliasLower;
+ CHAR16 *AliasVal;
// Convert to lowercase to make aliases case-insensitive
if (Alias != NULL) {
@@ -3229,7 +3230,8 @@ EfiShellGetAlias(
ToLower (AliasLower);
if (Volatile == NULL) {
- return (AddBufferToFreeList(GetVariable(AliasLower, &gShellAliasGuid)));
+ GetVariable2 (AliasLower, &gShellAliasGuid, (VOID **)&AliasVal, NULL);
+ return (AddBufferToFreeList(AliasVal));
}
RetSize = 0;
RetVal = NULL;