* fix for SysThreadSetPriority

git-svn-id: trunk@19783 -
This commit is contained in:
Tomas Hajny 2011-12-09 00:26:51 +00:00
parent 4a79262728
commit f56cd3d6d9

View File

@ -487,10 +487,10 @@ begin
else
begin
Delta := Prio * 2;
if Delta + TPrio (PrioLevel) < 0 then
Delta := - TPrio (PrioLevel)
else if Delta + TPrio (PrioLevel) > 31 then
Delta := 31 - TPrio (PrioLevel);
if Delta + TPrio (Priority).PrioLevel < 0 then
Delta := - TPrio (Priority).PrioLevel
else if Delta + TPrio (Priority).PrioLevel > 31 then
Delta := 31 - TPrio (Priority).PrioLevel;
SysThreadSetPriority :=
DosSetPriority (dpThread, dpSameClass, Delta, ThreadHandle) = 0;
end;