force init patcher

Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
This commit is contained in:
Sergey Isakov 2020-07-19 11:50:00 +03:00
parent 762eac695c
commit cf5b919627
2 changed files with 3 additions and 2 deletions

View File

@ -2385,6 +2385,7 @@ LOADER_ENTRY::KernelAndKextsPatcherStart()
*/
KernelAndKextPatches = (KERNEL_AND_KEXT_PATCHES *)(((UINTN)&gSettings) + OFFSET_OF(SETTINGS_DATA, KernelAndKextPatches));
PatcherInited = false;
// we will call KernelAndKextPatcherInit() only if needed
if (KernelAndKextPatches == NULL) return; //entry is not null as double check

View File

@ -3,7 +3,7 @@
#include "DataHubCpu.h"
#ifndef DEBUG_ALL
#define KEXT_INJECT_DEBUG 0
#define KEXT_INJECT_DEBUG 00
#else
#define KEXT_INJECT_DEBUG DEBUG_ALL
#endif