Add IC when checking drivers name at loading.

This commit is contained in:
jief666 2020-11-24 16:01:32 +03:00
parent 2f90c9702a
commit 8a561576cd
2 changed files with 6 additions and 7 deletions

View File

@ -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;

View File

@ -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) {