diff --git a/lib/win_util.h b/lib/win_util.h index 5de30882a6..8591bb43ce 100644 --- a/lib/win_util.h +++ b/lib/win_util.h @@ -46,7 +46,7 @@ inline std::string W2A(const std::wstring& str) { return result; } -extern int suspend_or_resume_threads(DWORD pid, bool resume); +extern int suspend_or_resume_threads(DWORD pid, DWORD threadid, bool resume); extern void chdir_to_data_dir(); extern bool is_remote_desktop(); diff --git a/samples/wrapper/wrapper.cpp b/samples/wrapper/wrapper.cpp index 375bada337..a27bac9c3b 100644 --- a/samples/wrapper/wrapper.cpp +++ b/samples/wrapper/wrapper.cpp @@ -418,7 +418,7 @@ void TASK::kill() { void TASK::stop() { #ifdef _WIN32 - suspend_or_resume_threads(pid, false); + suspend_or_resume_threads(pid, 0, false); #else ::kill(pid, SIGSTOP); #endif @@ -427,7 +427,7 @@ void TASK::stop() { void TASK::resume() { #ifdef _WIN32 - suspend_or_resume_threads(pid, true); + suspend_or_resume_threads(pid, 0, true); #else ::kill(pid, SIGCONT); #endif