From 2cdab656afe6248bc30970d07ad97e273f0e833d Mon Sep 17 00:00:00 2001 From: jief666 Date: Fri, 13 Nov 2020 18:15:46 +0300 Subject: [PATCH] Update refit.inf to remove warning. --- rEFIt_UEFI/entry_scan/loader.cpp | 3 +++ rEFIt_UEFI/refit.inf | 3 +++ 2 files changed, 6 insertions(+) diff --git a/rEFIt_UEFI/entry_scan/loader.cpp b/rEFIt_UEFI/entry_scan/loader.cpp index b00fe855d..f1a4f0296 100644 --- a/rEFIt_UEFI/entry_scan/loader.cpp +++ b/rEFIt_UEFI/entry_scan/loader.cpp @@ -1539,6 +1539,7 @@ void ScanLoader(void) XStringW LoaderTitle; XStringW LoaderTitleInstaller; + // Find the "target" volume. REFIT_VOLUME* targetVolume = NULL; for (size_t VolumeIndex2 = 0; VolumeIndex2 < Volumes.size(); VolumeIndex2++) { REFIT_VOLUME* Volume2 = &Volumes[VolumeIndex2]; @@ -1549,6 +1550,7 @@ void ScanLoader(void) } } } + // If targetVolume is found, and it's a data partition, try to find the system partition that goes with it. //DBG("targetVolume=%d\n", targetVolume ? 1 : 0); if ( targetVolume ) { if ( (targetVolume->ApfsRole & APPLE_APFS_VOLUME_ROLE_DATA) != 0 ) { @@ -1569,6 +1571,7 @@ void ScanLoader(void) } } } + // If targetVolume is not found, and it's not a recovery, find the preboot volume from the same container //DBG("2) targetVolume=%d\n", targetVolume ? 1 : 0); if ( !targetVolume ) { REFIT_VOLUME* bootVolume = Volume; diff --git a/rEFIt_UEFI/refit.inf b/rEFIt_UEFI/refit.inf index b7c226d66..88eca7716 100644 --- a/rEFIt_UEFI/refit.inf +++ b/rEFIt_UEFI/refit.inf @@ -41,6 +41,7 @@ include/Efi.h include/Handle.h include/OneLinerMacros.h + include/OsType.h include/Pci.h include/XToolsConf.h include/OC.h @@ -296,6 +297,8 @@ cpp_unit_test/global_test.cpp cpp_unit_test/LoadOptions_test.cpp cpp_unit_test/LoadOptions_test.h + cpp_unit_test/MacOsVersion_test.cpp + cpp_unit_test/MacOsVersion_test.h cpp_unit_test/printf_lite-test.cpp cpp_unit_test/printf_lite-test.h cpp_unit_test/printf_lite-test-cpp_conf.h