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)