mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +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)
|
if (!Hook_Active && HookingMethod == 3)
|
||||||
{
|
{
|
||||||
|
FARPROC proc = GetProcAddress(GetModuleHandle("kernelbase.dll"), "LoadLibraryExW");
|
||||||
|
|
||||||
|
if (proc)
|
||||||
|
real_LoadLibraryExW = proc;
|
||||||
|
|
||||||
DetourTransactionBegin();
|
DetourTransactionBegin();
|
||||||
DetourUpdateThread(GetCurrentThread());
|
DetourUpdateThread(GetCurrentThread());
|
||||||
DetourAttach((PVOID*)&real_LoadLibraryExW, (PVOID)fake_LoadLibraryExW);
|
DetourAttach((PVOID*)&real_LoadLibraryExW, (PVOID)fake_LoadLibraryExW);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user