Make return value of SetPriorityClass() behave the same as setpriority().
This commit is contained in:
parent
03b7118139
commit
07ffb1a198
3 changed files with 6 additions and 2 deletions
|
|
@ -504,7 +504,7 @@ static bool drop_privs() {
|
|||
}
|
||||
|
||||
#ifdef HAVE_MINGW
|
||||
# define setpriority(level) SetPriorityClass(GetCurrentProcess(), (level))
|
||||
# define setpriority(level) !SetPriorityClass(GetCurrentProcess(), (level))
|
||||
#else
|
||||
# define NORMAL_PRIORITY_CLASS 0
|
||||
# define BELOW_NORMAL_PRIORITY_CLASS 10
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue