Commit 894679ce authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

ws2_32: Cast timeval fields to LONGLONG before multiplying.

WXWORK passes 300 seconds, which overflows 32-bit multiplication. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52383Signed-off-by: 's avatarZebediah Figura <zfigura@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 6fa197c3
...@@ -2409,7 +2409,7 @@ int WINAPI select( int count, fd_set *read_ptr, fd_set *write_ptr, ...@@ -2409,7 +2409,7 @@ int WINAPI select( int count, fd_set *read_ptr, fd_set *write_ptr,
} }
if (timeout) if (timeout)
params->timeout = timeout->tv_sec * -10000000 + timeout->tv_usec * -10; params->timeout = (LONGLONG)timeout->tv_sec * -10000000 + (LONGLONG)timeout->tv_usec * -10;
else else
params->timeout = TIMEOUT_INFINITE; params->timeout = TIMEOUT_INFINITE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment