Commit c0d20bb3 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard
Browse files

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's avatarZebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard's avatarAlexandre Julliard <julliard@winehq.org>
parent 894679ce
......@@ -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)
{
......
Supports Markdown
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