diff options
| author | Paul Gilbert | 2012-05-20 09:22:14 +1000 | 
|---|---|---|
| committer | Paul Gilbert | 2012-05-25 23:06:24 +1000 | 
| commit | 4719fd99007df8b4e20b93484a2229e32aed6261 (patch) | |
| tree | 26962491ef8e995198cd9f296ca158d356ba6b85 | |
| parent | beef27fc10bb714fe37f2ee0c35cd143dc706829 (diff) | |
| download | scummvm-rg350-4719fd99007df8b4e20b93484a2229e32aed6261.tar.gz scummvm-rg350-4719fd99007df8b4e20b93484a2229e32aed6261.tar.bz2 scummvm-rg350-4719fd99007df8b4e20b93484a2229e32aed6261.zip | |
COMMON: Fix comparison operation on coroutine wait methods
| -rw-r--r-- | common/coroutines.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/common/coroutines.cpp b/common/coroutines.cpp index d511ab4b35..4a45f2ec23 100644 --- a/common/coroutines.cpp +++ b/common/coroutines.cpp @@ -386,7 +386,7 @@ void CoroutineScheduler::waitForSingleObject(CORO_PARAM, int pid, uint32 duratio  		*expired = true;  	// Outer loop for doing checks until expiry  -	while (g_system->getMillis() < _ctx->endTime) { +	while (g_system->getMillis() <= _ctx->endTime) {  		// Check to see if a process or event with the given Id exists  		_ctx->pProcess = getProcess(pid);  		_ctx->pEvent = !_ctx->pProcess ? getEvent(pid) : NULL; @@ -456,7 +456,7 @@ void CoroutineScheduler::waitForMultipleObjects(CORO_PARAM, int nCount, uint32 *  		*expired = true;  	// Outer loop for doing checks until expiry  -	while (g_system->getMillis() < _ctx->endTime) { +	while (g_system->getMillis() <= _ctx->endTime) {  		_ctx->signalled = bWaitAll;  		for (_ctx->i = 0; _ctx->i < nCount; ++_ctx->i) { | 
