Revision: 18368
          http://sourceforge.net/p/edk2/code/18368
Author:   ydong10
Date:     2015-09-01 01:06:08 +0000 (Tue, 01 Sep 2015)
Log Message:
-----------
ShellPkg: Replace use case of deprecated function GetVariable with GetVariable2.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <[email protected]>
Reviewed-by: Jaben Carsey <[email protected]>

Modified Paths:
--------------
    trunk/edk2/ShellPkg/Application/Shell/ShellProtocol.c

Modified: trunk/edk2/ShellPkg/Application/Shell/ShellProtocol.c
===================================================================
--- trunk/edk2/ShellPkg/Application/Shell/ShellProtocol.c       2015-09-01 
00:37:24 UTC (rev 18367)
+++ trunk/edk2/ShellPkg/Application/Shell/ShellProtocol.c       2015-09-01 
01:06:08 UTC (rev 18368)
@@ -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