summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;