From 9dca34e3b83893d0d3ccb2274e1f9d474a674c95 Mon Sep 17 00:00:00 2001 From: "mr.exodia" Date: Wed, 25 Dec 2013 15:10:38 +0100 Subject: [PATCH] fixed two bugs with dynamically imported winapi functions --- TitanEngine/TitanEngine.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/TitanEngine/TitanEngine.cpp b/TitanEngine/TitanEngine.cpp index 207b1e4..e65637a 100644 --- a/TitanEngine/TitanEngine.cpp +++ b/TitanEngine/TitanEngine.cpp @@ -17979,7 +17979,7 @@ __declspec(dllexport) void TITCALL DebugLoopEx(DWORD TimeOut) __declspec(dllexport) bool TITCALL AttachDebugger(DWORD ProcessId, bool KillOnExit, LPVOID DebugInfo, LPVOID CallBack) { - typedef void(TITCALL *fDebugSetProcessKillOnExit)(bool KillExitingDebugee); + typedef void(WINAPI *fDebugSetProcessKillOnExit)(bool KillExitingDebugee); fDebugSetProcessKillOnExit myDebugSetProcessKillOnExit; LPVOID funcDebugSetProcessKillOnExit = NULL; @@ -18017,8 +18017,7 @@ __declspec(dllexport) bool TITCALL AttachDebugger(DWORD ProcessId, bool KillOnEx } __declspec(dllexport) bool TITCALL DetachDebugger(DWORD ProcessId) { - - typedef bool(TITCALL *fDebugActiveProcessStop)(DWORD dwProcessId); + typedef bool(WINAPI *fDebugActiveProcessStop)(DWORD dwProcessId); fDebugActiveProcessStop myDebugActiveProcessStop; LPVOID funcDebugActiveProcessStop = NULL; bool FuncReturn = false;