ws2_32: Cast the WSAPoll() timeout to LONGLONG before multiplying.
This is not particularly likely to overflow, but there is no harm in being careful. Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
894679ced8
commit
c0d20bb3c0
|
@ -2574,7 +2574,7 @@ int WINAPI WSAPoll( WSAPOLLFD *fds, ULONG count, int timeout )
|
|||
return SOCKET_ERROR;
|
||||
}
|
||||
|
||||
params->timeout = (timeout >= 0 ? timeout * -10000 : TIMEOUT_INFINITE);
|
||||
params->timeout = (timeout >= 0 ? (LONGLONG)timeout * -10000 : TIMEOUT_INFINITE);
|
||||
|
||||
for (i = 0; i < count; ++i)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue