From f21db0925c293abeec27bfb7c71b1dbc10dfd680 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Tue, 12 Feb 2019 04:14:08 -0500 Subject: [PATCH] fix thread saving on x64 --- GUI/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GUI/mainwindow.cpp b/GUI/mainwindow.cpp index a6a94da..1bf3f91 100644 --- a/GUI/mainwindow.cpp +++ b/GUI/mainwindow.cpp @@ -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)