Alexander Dorofeyev <[EMAIL PROTECTED]> 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
[EMAIL PROTECTED]


Reply via email to