1
0
Fork 0

DBG: updated Scylla (it will now automatically use CIP as the entry point which is almost always what you expect)

This commit is contained in:
mrexodia 2016-01-21 02:33:02 +01:00
parent 4464b2be26
commit dbbf01e963
1 changed files with 4 additions and 5 deletions

View File

@ -924,7 +924,7 @@ CMDRESULT cbDebugPause(int argc, char* argv[])
static DWORD WINAPI scyllaThread(void* lpParam)
{
typedef INT (WINAPI * SCYLLASTARTGUI)(DWORD pid, HINSTANCE mod);
typedef INT (WINAPI * SCYLLASTARTGUI)(DWORD pid, HINSTANCE mod, DWORD_PTR entrypoint);
SCYLLASTARTGUI ScyllaStartGui = 0;
HINSTANCE hScylla = LoadLibraryW(L"Scylla.dll");
if(!hScylla)
@ -942,10 +942,9 @@ static DWORD WINAPI scyllaThread(void* lpParam)
FreeLibrary(hScylla);
return 0;
}
if(dbgisdll())
ScyllaStartGui(fdProcessInfo->dwProcessId, (HINSTANCE)dbgdebuggedbase());
else
ScyllaStartGui(fdProcessInfo->dwProcessId, 0);
auto cip = GetContextDataEx(fdProcessInfo->hThread, UE_CIP);
auto cipModBase = ModBaseFromAddr(cip);
ScyllaStartGui(fdProcessInfo->dwProcessId, (HINSTANCE)cipModBase, cip);
FreeLibrary(hScylla);
bScyllaLoaded = false;
return 0;