Make return value of SetPriorityClass() behave the same as setpriority().

This commit is contained in:
Guus Sliepen 2011-05-22 15:56:04 +02:00
parent 03b7118139
commit 07ffb1a198
3 changed files with 6 additions and 2 deletions

View file

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