diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c index a7e3e0ab0d7..fe7e4fb3464 100644 --- a/dlls/ws2_32/socket.c +++ b/dlls/ws2_32/socket.c @@ -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) {