From 05d2b00c7db1f635cbcf2bf301cd337cb8f6a107 Mon Sep 17 00:00:00 2001 From: vit9696 Date: Thu, 23 Feb 2023 13:28:34 +0300 Subject: [PATCH] OcAppleKernelLib: Fix ProvideCpuInfo on 13.3 --- Library/OcAppleKernelLib/CpuidPatches.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Library/OcAppleKernelLib/CpuidPatches.c b/Library/OcAppleKernelLib/CpuidPatches.c index c0a9267e..7a248653 100644 --- a/Library/OcAppleKernelLib/CpuidPatches.c +++ b/Library/OcAppleKernelLib/CpuidPatches.c @@ -1301,12 +1301,13 @@ PatchProvideCurrentCpuInfoMSR35h ( Patcher, &mProvideCurrentCpuInfoTopologyCorePerPackageV1Patch ); - if (EFI_ERROR (Status)) { - Status = PatcherApplyGenericPatch ( - Patcher, - &mProvideCurrentCpuInfoTopologyCorePerPackageV1_5Patch - ); - } + } + + if (EFI_ERROR (Status)) { + Status = PatcherApplyGenericPatch ( + Patcher, + &mProvideCurrentCpuInfoTopologyCorePerPackageV1_5Patch + ); } DEBUG ((DEBUG_INFO, "OCAK: Patching core per package count - %r\n", Status));