mirror of https://github.com/acidanthera/audk.git
ShellPkg: Also accept gEfiUnicodeCollation2ProtocolGuid for parsing.
The EFI_UNICODE_COLLATION_PROTOCOL can have two different GUIDs. Look for both to support more UEFI implementations. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Marvin Haeuser <Marvin.Haeuser@outlook.com> Reviewed-by: Qiu Shumin <shumin.qiu@intel.com>
This commit is contained in:
parent
b6e5da196a
commit
f3a51e989a
|
@ -903,6 +903,12 @@ ProcessCommandLine(
|
|||
// arguments manually, ignoring those after the first thing that doesn't look
|
||||
// like a shell option (which is assumed to be `file-name`).
|
||||
|
||||
Status = gBS->LocateProtocol (
|
||||
&gEfiUnicodeCollation2ProtocolGuid,
|
||||
NULL,
|
||||
(VOID **) &UnicodeCollation
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
Status = gBS->LocateProtocol (
|
||||
&gEfiUnicodeCollationProtocolGuid,
|
||||
NULL,
|
||||
|
@ -911,6 +917,7 @@ ProcessCommandLine(
|
|||
if (EFI_ERROR (Status)) {
|
||||
return Status;
|
||||
}
|
||||
}
|
||||
|
||||
// Set default options
|
||||
ShellInfoObject.ShellInitSettings.BitUnion.Bits.Startup = FALSE;
|
||||
|
|
Loading…
Reference in New Issue