mirror of
				https://git.proxmox.com/git/mirror_edk2
				synced 2025-11-04 06:52:16 +00:00 
			
		
		
		
	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;
 | 
			
		||||
  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;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user