mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
OcAppleBootCompatLib: Fix infinite loop
This commit is contained in:
parent
601d11c1de
commit
ce0068c11b
@ -231,7 +231,7 @@ ShouldUseCustomSlideOffset (
|
||||
UINTN DescriptorSize;
|
||||
UINT32 DescriptorVersion;
|
||||
UINTN Index;
|
||||
UINT8 Slide;
|
||||
UINTN Slide;
|
||||
UINTN NumEntries;
|
||||
UINT64 MaxAvailableSize;
|
||||
UINT8 FallbackSlide;
|
||||
@ -291,7 +291,7 @@ ShouldUseCustomSlideOffset (
|
||||
|
||||
GetSlideRangeForValue (
|
||||
SlideSupport,
|
||||
Slide,
|
||||
(UINT8) Slide,
|
||||
&StartAddr,
|
||||
&EndAddr
|
||||
);
|
||||
@ -345,7 +345,7 @@ ShouldUseCustomSlideOffset (
|
||||
|
||||
if (AvailableSize > MaxAvailableSize) {
|
||||
MaxAvailableSize = AvailableSize;
|
||||
FallbackSlide = Slide;
|
||||
FallbackSlide = (UINT8) Slide;
|
||||
}
|
||||
|
||||
if ((StartAddr + AvailableSize) != EndAddr) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user