mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-12-23 16:17:40 +01:00
Update refit.inf to remove warning.
This commit is contained in:
parent
7f1b87c92f
commit
2cdab656af
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user