Revision: 18371
          http://sourceforge.net/p/edk2/code/18371
Author:   hwu1225
Date:     2015-09-01 05:21:48 +0000 (Tue, 01 Sep 2015)
Log Message:
-----------
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 <[email protected]>
Reviewed-by: Jaben Carsey <[email protected]>

Revision Links:
--------------
    http://sourceforge.net/p/edk2/code/18368

Modified Paths:
--------------
    branches/UDK2015/ShellPkg/Application/Shell/ShellProtocol.c

Modified: branches/UDK2015/ShellPkg/Application/Shell/ShellProtocol.c
===================================================================
--- branches/UDK2015/ShellPkg/Application/Shell/ShellProtocol.c 2015-09-01 
01:22:49 UTC (rev 18370)
+++ branches/UDK2015/ShellPkg/Application/Shell/ShellProtocol.c 2015-09-01 
05:21:48 UTC (rev 18371)
@@ -3221,6 +3221,7 @@
   UINT32      Attribs;
   EFI_STATUS  Status;
   CHAR16      *AliasLower;
+  CHAR16      *AliasVal;
 
   // Convert to lowercase to make aliases case-insensitive
   if (Alias != NULL) {
@@ -3229,7 +3230,8 @@
     ToLower (AliasLower);
 
     if (Volatile == NULL) {
-      return (AddBufferToFreeList(GetVariable(AliasLower, &gShellAliasGuid)));
+      GetVariable2 (AliasLower, &gShellAliasGuid, (VOID **)&AliasVal, NULL);
+      return (AddBufferToFreeList(AliasVal));
     }
     RetSize = 0;
     RetVal = NULL;


------------------------------------------------------------------------------
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to