fix thread saving on x64

This commit is contained in:
Akash Mozumdar 2019-02-12 04:14:08 -05:00
parent 72b9a1f8ed
commit f21db0925c

View File

@ -108,7 +108,7 @@ void MainWindow::ProcessConnected(DWORD processId)
if (hookList != allProcesses.rend())
for (auto hookInfo : hookList->split(" , "))
if (auto hp = Util::ParseCode(S(hookInfo))) Host::InsertHook(processId, hp.value());
else swscanf_s(S(hookInfo).c_str(), L"|%I64d:%I64d:%[^\n]", &savedThreadCtx.first, &savedThreadCtx.second, savedThreadCode, ARRAYSIZE(savedThreadCode));
else swscanf_s(S(hookInfo).c_str(), L"|%I64d:%I64d:%[^\n]", &savedThreadCtx.first, &savedThreadCtx.second, savedThreadCode, (unsigned)ARRAYSIZE(savedThreadCode));
}
void MainWindow::ProcessDisconnected(DWORD processId)