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=52383 Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
6fa197c3ec
commit
894679ced8
|
@ -2409,7 +2409,7 @@ int WINAPI select( int count, fd_set *read_ptr, fd_set *write_ptr,
|
|||
}
|
||||
|
||||
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
|
||||
params->timeout = TIMEOUT_INFINITE;
|
||||
|
||||
|
|
Loading…
Reference in New Issue