OcAppleKernelLib: Skip previously patched VTables.
@@ -572,6 +572,10 @@ InternalPatchByVtables64 (
for (Index = 0; Index < PatchData->NumEntries; ++Index) {
Smcp = PatchData->Entries[Index].Smcp;
+ if (Smcp == NULL) {
+ continue;
+ }
+
Name = MachoGetSymbolName64 (MachoContext, Smcp);
//
// We walk over the super metaclass pointer symbols because classes
@@ -778,6 +782,8 @@ InternalPatchByVtables64 (
return FALSE;
}
+ PatchData->Entries[Index].Smcp = NULL;
+
++NumPatched;
SuccessfulIteration = TRUE;
}
