From 8a561576cd863db52b43b63cfe1087c1980abb63 Mon Sep 17 00:00:00 2001 From: jief666 Date: Tue, 24 Nov 2020 16:01:32 +0300 Subject: [PATCH] Add IC when checking drivers name at loading. --- rEFIt_UEFI/Platform/BdsConnect.cpp | 1 - rEFIt_UEFI/refit/main.cpp | 12 ++++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/rEFIt_UEFI/Platform/BdsConnect.cpp b/rEFIt_UEFI/Platform/BdsConnect.cpp index caf3c0b82..0b6f0ed37 100644 --- a/rEFIt_UEFI/Platform/BdsConnect.cpp +++ b/rEFIt_UEFI/Platform/BdsConnect.cpp @@ -437,7 +437,6 @@ EFI_STATUS BdsLibConnectMostlyAllEfi() EFI_PCI_IO_PROTOCOL* PciIo = NULL; PCI_TYPE00 Pci; -MsgLog("1\n"); Status = gBS->LocateHandleBuffer (AllHandles, NULL, NULL, &AllHandleCount, &AllHandleBuffer); if (EFI_ERROR(Status)) return Status; diff --git a/rEFIt_UEFI/refit/main.cpp b/rEFIt_UEFI/refit/main.cpp index 472c7f89a..715bba5a9 100644 --- a/rEFIt_UEFI/refit/main.cpp +++ b/rEFIt_UEFI/refit/main.cpp @@ -1712,18 +1712,18 @@ static void ScanDriverDir(IN CONST CHAR16 *Path, OUT EFI_HANDLE **DriversToConne if (EFI_ERROR(Status)) { continue; } - if ( FileName.contains("AudioDxe") ) { + if ( FileName.containsIC("AudioDxe") ) { AudioDriverHandle = DriverHandle; } - if ( FileName.contains("EmuVariable") ) { + if ( FileName.containsIC("EmuVariable") ) { gDriversFlags.EmuVariableLoaded = TRUE; - } else if ( FileName.contains("Video") ) { + } else if ( FileName.containsIC("Video") ) { gDriversFlags.VideoLoaded = TRUE; - } else if ( FileName.contains("Partition") ) { + } else if ( FileName.containsIC("Partition") ) { gDriversFlags.PartitionLoaded = TRUE; - } else if ( FileName.contains("HFS") ) { + } else if ( FileName.containsIC("HFS") ) { gDriversFlags.HFSLoaded = TRUE; - } else if ( FileName.contains("apfs") ) { + } else if ( FileName.containsIC("apfs") ) { gDriversFlags.APFSLoaded = TRUE; } if (DriverHandle != NULL && DriversToConnectNum != NULL && DriversToConnect != NULL) {