mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-10 09:40:53 +01:00
avoid infinite loop while kext patch
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
This commit is contained in:
parent
773bb86427
commit
5eef6624f1
@ -1010,6 +1010,10 @@ VOID AnyKextPatch(UINT8 *Driver, UINT32 DriverSize, CHAR8 *InfoPlist, UINT32 Inf
|
||||
j += Entry->KernelAndKextPatches->KextPatches[N].SearchLen - 1;
|
||||
}
|
||||
}
|
||||
if (!Entry->KernelAndKextPatches->KextPatches[i].StartPattern ||
|
||||
!Entry->KernelAndKextPatches->KextPatches[i].StartPatternLen) {
|
||||
break;
|
||||
}
|
||||
j++; curs++;
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user