fixed bug where win32 version of epicsThreadHighestPriorityLevelBelow didnt map to a lower priority successfully if the epics priority was mapping into the 2nd win32 priority bucket

This commit is contained in:
Jeff Hill
2010-08-13 18:15:49 -06:00
parent 1bab392da7
commit c1bd11de58

View File

@@ -433,7 +433,7 @@ epicsShareFunc epicsThreadBooleanStatus epicsShareAPI epicsThreadHighestPriority
magnitude = osdPriorityMagFromPriorityOSI ( priority, stateCount );
if ( magnitude > 1u ) {
if ( magnitude > 0u ) {
*pPriorityJustBelow = osiPriorityMagFromMagnitueOSD ( magnitude - 1u, stateCount );
status = epicsThreadBooleanStatusSuccess;
}