From 213d3a65dcdb18735151661b908ebe08e630bcfe Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 9 Jul 2013 14:44:13 -0700 Subject: [PATCH] API: fix last commit; need a DesiredAccess arg to OpenProcess() --- api/boinc_api.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/boinc_api.cpp b/api/boinc_api.cpp index 76f2a4c61b..71238173ef 100644 --- a/api/boinc_api.cpp +++ b/api/boinc_api.cpp @@ -411,7 +411,7 @@ static bool client_dead() { // if (interrupt_count%(TIMERS_PER_SEC*10)) return false; #ifdef _WIN32 - HANDLE h = OpenProcess(0, FALSE, aid.client_pid); + HANDLE h = OpenProcess(PROCESS_QUERY_INFORMATION, FALSE, aid.client_pid); if (h == NULL) { dead = true; } else {