Alexander Dorofeyev : ole32: Fix wrong timeout check.
Alexandre Julliard
julliard at winehq.org
Mon Dec 24 14:21:34 CST 2007
Module: wine
Branch: master
Commit: 188ef4e4f93c3610c7ddacacbcd0302228bdaf9e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=188ef4e4f93c3610c7ddacacbcd0302228bdaf9e
Author: Alexander Dorofeyev <alexd4 at inbox.lv>
Date: Mon Dec 24 02:23:06 2007 -0800
ole32: Fix wrong timeout check.
---
dlls/ole32/compobj.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/ole32/compobj.c b/dlls/ole32/compobj.c
index 5339db2..6c837a1 100644
--- a/dlls/ole32/compobj.c
+++ b/dlls/ole32/compobj.c
@@ -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;
More information about the wine-cvs
mailing list