fix for last commit
This commit is contained in:
parent
28b4965611
commit
e10cfa3e1a
1 changed files with 5 additions and 0 deletions
|
@ -212,6 +212,11 @@ void Hook_Init()
|
|||
{
|
||||
if (!Hook_Active && HookingMethod == 3)
|
||||
{
|
||||
FARPROC proc = GetProcAddress(GetModuleHandle("kernelbase.dll"), "LoadLibraryExW");
|
||||
|
||||
if (proc)
|
||||
real_LoadLibraryExW = proc;
|
||||
|
||||
DetourTransactionBegin();
|
||||
DetourUpdateThread(GetCurrentThread());
|
||||
DetourAttach((PVOID*)&real_LoadLibraryExW, (PVOID)fake_LoadLibraryExW);
|
||||
|
|
Loading…
Reference in a new issue