1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-24 17:49:52 +01:00

sync with master

This commit is contained in:
FunkyFr3sh 2019-08-07 12:59:23 +02:00
parent 5610f86e7b
commit 4c101642c8

View File

@ -104,7 +104,10 @@ void Hook_Create(char *moduleName, char *functionName, PROC newFunction, PROC *f
#endif #endif
if (HookingMethod == 1) if (HookingMethod == 1)
{
Hook_PatchIAT(GetModuleHandle(NULL), moduleName, functionName, newFunction); Hook_PatchIAT(GetModuleHandle(NULL), moduleName, functionName, newFunction);
Hook_PatchIAT(GetModuleHandle("storm.dll"), moduleName, functionName, newFunction);
}
} }
void Hook_Revert(char *moduleName, char *functionName, PROC newFunction, PROC *function) void Hook_Revert(char *moduleName, char *functionName, PROC newFunction, PROC *function)
@ -126,6 +129,12 @@ void Hook_Revert(char *moduleName, char *functionName, PROC newFunction, PROC *f
moduleName, moduleName,
functionName, functionName,
GetProcAddress(GetModuleHandle(moduleName), functionName)); GetProcAddress(GetModuleHandle(moduleName), functionName));
Hook_PatchIAT(
GetModuleHandle("storm.dll"),
moduleName,
functionName,
GetProcAddress(GetModuleHandle(moduleName), functionName));
} }
} }