mirror of https://github.com/BOINC/boinc.git
API: fix last commit; need a DesiredAccess arg to OpenProcess()
This commit is contained in:
parent
85c845dde6
commit
213d3a65dc
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue