ole32: Fix wrong timeout check.
This commit is contained in:
parent
aff968fb47
commit
188ef4e4f9
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user