API: fix last commit; need a DesiredAccess arg to OpenProcess()

This commit is contained in:
David Anderson 2013-07-09 14:44:13 -07:00
parent 85c845dde6
commit 213d3a65dc
1 changed files with 1 additions and 1 deletions

View File

@ -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 {