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:
parent
c79de074b6
commit
4c33aace3f
|
@ -3221,6 +3221,7 @@ EfiShellGetAlias(
|
||||||
UINT32 Attribs;
|
UINT32 Attribs;
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
CHAR16 *AliasLower;
|
CHAR16 *AliasLower;
|
||||||
|
CHAR16 *AliasVal;
|
||||||
|
|
||||||
// Convert to lowercase to make aliases case-insensitive
|
// Convert to lowercase to make aliases case-insensitive
|
||||||
if (Alias != NULL) {
|
if (Alias != NULL) {
|
||||||
|
@ -3229,7 +3230,8 @@ EfiShellGetAlias(
|
||||||
ToLower (AliasLower);
|
ToLower (AliasLower);
|
||||||
|
|
||||||
if (Volatile == NULL) {
|
if (Volatile == NULL) {
|
||||||
return (AddBufferToFreeList(GetVariable(AliasLower, &gShellAliasGuid)));
|
GetVariable2 (AliasLower, &gShellAliasGuid, (VOID **)&AliasVal, NULL);
|
||||||
|
return (AddBufferToFreeList(AliasVal));
|
||||||
}
|
}
|
||||||
RetSize = 0;
|
RetSize = 0;
|
||||||
RetVal = NULL;
|
RetVal = NULL;
|
||||||
|
|
Loading…
Reference in New Issue