mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 06:04:49 +01:00
fix for last commit
This commit is contained in:
parent
28b4965611
commit
e10cfa3e1a
@ -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…
x
Reference in New Issue
Block a user