summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Dong <eric.dong@intel.com>2015-09-01 05:21:48 +0000
committerhwu1225 <hwu1225@Edk2>2015-09-01 05:21:48 +0000
commit1f90b7bf9346cfb1bd1a1a2c6d355106af53e090 (patch)
tree25ed8bf9afebfb7ea6f12524cfa05a1211add357
parent9b28a5d19f9aecea3cfcbab718e792b88aad5d65 (diff)
downloadedk2-platforms-1f90b7bf9346cfb1bd1a1a2c6d355106af53e090.tar.xz
ShellPkg: Replace use case of deprecated function GetVariable with GetVariable2.
(Sync patch r18368 from main trunk.) 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/branches/UDK2015@18371 6f19259b-4bc3-4df7-8a09-765794883524
-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;