]> git.proxmox.com Git - mirror_edk2.git/commit - ShellPkg/Application/Shell/ShellProtocol.c
ShellPkg/Shell: fix CopyGuid() arg order in EfiShellGetGuidFromName()
authorLaszlo Ersek <lersek@redhat.com>
Tue, 18 Oct 2016 10:53:48 +0000 (12:53 +0200)
committerLaszlo Ersek <lersek@redhat.com>
Tue, 18 Oct 2016 17:30:38 +0000 (19:30 +0200)
commit09bd67f09573ad5a40875f3d7bfbf49c43756cf5
treed0af6e74fc8bec6cac56777f1321302dc032cd6e
parentbfa97024df7c0c4bd94157a1e9c3eb5e89cba656
ShellPkg/Shell: fix CopyGuid() arg order in EfiShellGetGuidFromName()

The destination GUID comes first; from
"MdePkg/Include/Library/BaseMemoryLib.h":

> GUID *
> EFIAPI
> CopyGuid (
>   OUT GUID       *DestinationGuid,
>   IN CONST GUID  *SourceGuid
>   );

Here "NewGuid" is the GUID looked up by GetGuidFromStringName(), and
"Guid" is where EfiShellGetGuidFromName() has to propagate that result to.

Cc: Jaben Carsey <jaben.carsey@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Tim Lewis <tim.lewis@insyde.com>
Reported-by: Tim Lewis <tim.lewis@insyde.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Tim Lewis <tim.lewis@insyde.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
ShellPkg/Application/Shell/ShellProtocol.c