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

@ -2384,7 +2384,8 @@ LOADER_ENTRY::KernelAndKextsPatcherStart()
* so set common until better solution invented
*/
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