Skip to content
Snippets Groups Projects
Commit c0d20bb3 authored by Elizabeth Figura's avatar Elizabeth 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: default avatarZebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard's avatarAlexandre Julliard <julliard@winehq.org>
parent 894679ce
No related branches found
No related tags found
No related merge requests found
......@@ -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)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment