ws2_32: Include inttypes.h for UINT32_MAX.

Henri Verbeet hverbeet at gmail.com
Wed Apr 29 08:36:27 CDT 2015


On 29 April 2015 at 12:22, Francois Gouget <fgouget at free.fr> wrote:
> The timeout receives a 64 bit value so using an unsigned int would not
> work.
>
Do you mean for "timeout" or for the assignment to "optval"? The
current code is pretty much just broken for negative values. Since
it's a timeout I'm guessing those just aren't supposed to happen, but
in that case get_rcvsnd_timeo() should return a UINT64, and the
assignment to "optval" should use e.g. "*(unsigned int *)optval =
...;".



More information about the wine-devel mailing list