From f115cfde26d497436fabd5e23d4f8bb78576c49a Mon Sep 17 00:00:00 2001 From: vit9696 Date: Sun, 12 Jan 2020 21:41:24 +0300 Subject: [PATCH] OcAppleKernelLib: Fix broken AppleXcpmForceBoost --- Library/OcAppleKernelLib/CommonPatches.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/OcAppleKernelLib/CommonPatches.c b/Library/OcAppleKernelLib/CommonPatches.c index b9f34b48..743236b0 100644 --- a/Library/OcAppleKernelLib/CommonPatches.c +++ b/Library/OcAppleKernelLib/CommonPatches.c @@ -464,9 +464,9 @@ PatchAppleXcpmForceBoost ( while (Current < Last) { if (Current[0] == mPerfCtrlFind1[0] - || Current[1] == mPerfCtrlFind1[1] - || Current[2] == mPerfCtrlFind1[2] - || Current[3] == mPerfCtrlFind1[3]) { + && Current[1] == mPerfCtrlFind1[1] + && Current[2] == mPerfCtrlFind1[2] + && Current[3] == mPerfCtrlFind1[3]) { if (CompareMem (&Current[4], &mPerfCtrlFind1[4], sizeof (mPerfCtrlFind1) - 4) == 0 || CompareMem (&Current[4], &mPerfCtrlFind2[4], sizeof (mPerfCtrlFind2) - 4) == 0) { break;