From f3a51e989aeae40b754eb76e38a3cea73fe1c2d2 Mon Sep 17 00:00:00 2001 From: Marvin H?user Date: Thu, 19 May 2016 07:21:35 +0800 Subject: 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 Reviewed-by: Qiu Shumin --- ShellPkg/Application/Shell/Shell.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'ShellPkg/Application/Shell') diff --git a/ShellPkg/Application/Shell/Shell.c b/ShellPkg/Application/Shell/Shell.c index 47b3118ea7..2c56409072 100644 --- a/ShellPkg/Application/Shell/Shell.c +++ b/ShellPkg/Application/Shell/Shell.c @@ -904,12 +904,19 @@ ProcessCommandLine( // like a shell option (which is assumed to be `file-name`). Status = gBS->LocateProtocol ( - &gEfiUnicodeCollationProtocolGuid, + &gEfiUnicodeCollation2ProtocolGuid, NULL, (VOID **) &UnicodeCollation ); if (EFI_ERROR (Status)) { - return Status; + Status = gBS->LocateProtocol ( + &gEfiUnicodeCollationProtocolGuid, + NULL, + (VOID **) &UnicodeCollation + ); + if (EFI_ERROR (Status)) { + return Status; + } } // Set default options -- cgit v1.2.3