fixed two bugs with dynamically imported winapi functions

This commit is contained in:
mr.exodia 2013-12-25 15:10:38 +01:00
parent 3cd9d2da3e
commit 9dca34e3b8
1 changed files with 2 additions and 3 deletions

View File

@ -17979,7 +17979,7 @@ __declspec(dllexport) void TITCALL DebugLoopEx(DWORD TimeOut)
__declspec(dllexport) bool TITCALL AttachDebugger(DWORD ProcessId, bool KillOnExit, LPVOID DebugInfo, LPVOID CallBack) __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; fDebugSetProcessKillOnExit myDebugSetProcessKillOnExit;
LPVOID funcDebugSetProcessKillOnExit = NULL; LPVOID funcDebugSetProcessKillOnExit = NULL;
@ -18017,8 +18017,7 @@ __declspec(dllexport) bool TITCALL AttachDebugger(DWORD ProcessId, bool KillOnEx
} }
__declspec(dllexport) bool TITCALL DetachDebugger(DWORD ProcessId) __declspec(dllexport) bool TITCALL DetachDebugger(DWORD ProcessId)
{ {
typedef bool(WINAPI *fDebugActiveProcessStop)(DWORD dwProcessId);
typedef bool(TITCALL *fDebugActiveProcessStop)(DWORD dwProcessId);
fDebugActiveProcessStop myDebugActiveProcessStop; fDebugActiveProcessStop myDebugActiveProcessStop;
LPVOID funcDebugActiveProcessStop = NULL; LPVOID funcDebugActiveProcessStop = NULL;
bool FuncReturn = false; bool FuncReturn = false;