ole32: Fix wrong timeout check.

This commit is contained in:
Alexander Dorofeyev 2007-12-24 02:23:06 -08:00 committed by Alexandre Julliard
parent aff968fb47
commit 188ef4e4f9
1 changed files with 1 additions and 1 deletions

View File

@ -3429,7 +3429,7 @@ HRESULT WINAPI CoWaitForMultipleHandles(DWORD dwFlags, DWORD dwTimeout,
DWORD now = GetTickCount();
DWORD res;
if ((dwTimeout != INFINITE) && (start_time + dwTimeout >= now))
if (now - start_time > dwTimeout)
{
hr = RPC_S_CALLPENDING;
break;