ole32: fix wrong timeout check
Alexandre Julliard
julliard at winehq.org
Sun Dec 23 11:23:36 CST 2007
Alexander Dorofeyev <alexd4 at inbox.lv> writes:
> Yeah these calculations are a headache. I could probably write
>
> now < start_time || now >= start_time + dwTimeout
The right way is to write
now - start_time > dwTimeout
using unsigned variables everywhere. Then you don't have to worry about
overflows, and you don't even need to special case INFINITE.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list