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
This commit is contained in:
Eric Dong 2015-09-01 01:06:08 +00:00 committed by ydong10
parent c79de074b6
commit 4c33aace3f
1 changed files with 3 additions and 1 deletions

View File

@ -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;