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:
Zebediah Figura 2022-01-13 19:16:14 -06:00 committed by Alexandre Julliard
parent 6fa197c3ec
commit 894679ced8
1 changed files with 1 additions and 1 deletions

View File

@ -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;