sched.cc: Use PROCESS_QUERY_INFORMATION for now
Temporarily revert to use PROCESS_QUERY_INFORMATION instead of PROCESS_QUERY_LIMITED_INFORMATION to make sure every aspect of the next release is still XP/2003 compatible. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
211a942ad2
commit
b0b99e39dc
|
@ -91,8 +91,7 @@ sched_getparam (pid_t pid, struct sched_param *param)
|
||||||
set_errno (ESRCH);
|
set_errno (ESRCH);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
process = OpenProcess (PROCESS_QUERY_LIMITED_INFORMATION, FALSE,
|
process = OpenProcess (PROCESS_QUERY_INFORMATION, FALSE, p->dwProcessId);
|
||||||
p->dwProcessId);
|
|
||||||
if (!process)
|
if (!process)
|
||||||
{
|
{
|
||||||
set_errno (ESRCH);
|
set_errno (ESRCH);
|
||||||
|
|
Loading…
Reference in New Issue