silence warning about SetThreadPriorityBoost on 9x
This commit is contained in:
@@ -652,8 +652,8 @@ void MovieTexture_FFMpeg::DecoderThread()
|
|||||||
/* Windows likes to boost priority when processes come out of a wait state. We don't
|
/* Windows likes to boost priority when processes come out of a wait state. We don't
|
||||||
* want that, since it'll result in us having a small priority boost after each movie
|
* want that, since it'll result in us having a small priority boost after each movie
|
||||||
* frame, resulting in skips in the gameplay thread. */
|
* frame, resulting in skips in the gameplay thread. */
|
||||||
if(!SetThreadPriorityBoost(GetCurrentThread(), TRUE))
|
if( !SetThreadPriorityBoost(GetCurrentThread(), TRUE) && GetLastError() != ERROR_NOT_SUPPORTED )
|
||||||
LOG->Warn(werr_ssprintf(GetLastError(), "SetThreadPriorityBoost failed"));
|
LOG->Warn( werr_ssprintf(GetLastError(), "SetThreadPriorityBoost failed") );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
CHECKPOINT;
|
CHECKPOINT;
|
||||||
|
|||||||
Reference in New Issue
Block a user