mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
OcAppleBootPolicyLib: Fix Apple UB
This commit is contained in:
parent
971e412a5c
commit
3d97abb86f
@ -1344,7 +1344,6 @@ OcBootPolicyGetAllApfsRecoveryFilePath (
|
||||
EFI_HANDLE *HandleBuffer;
|
||||
APFS_VOLUME_INFO *VolumeInfo;
|
||||
GUID *ContainerGuids;
|
||||
EFI_GUID ContainerGuid;
|
||||
UINTN NumberOfContainers;
|
||||
UINTN NumberOfVolumeInfos;
|
||||
UINTN Index;
|
||||
@ -1417,7 +1416,7 @@ OcBootPolicyGetAllApfsRecoveryFilePath (
|
||||
|
||||
GuidPresent = FALSE;
|
||||
for (Index2 = 0; Index2 < NumberOfContainers; ++Index2) {
|
||||
if (CompareGuid (&ContainerGuids[Index2], &ContainerGuid)) {
|
||||
if (CompareGuid (&ContainerGuids[Index2], &VolumeInfo[NumberOfVolumeInfos].ContainerGuid)) {
|
||||
GuidPresent = TRUE;
|
||||
break;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user