ws2_32/socket16.c:319
Hans Leidekker
hans at it.vu.nl
Thu Oct 12 03:06:39 CDT 2006
On Thursday 12 October 2006 03:58, Michael [Plouj] Ploujnikov wrote:
> INT16 WINAPI ioctlsocket16(SOCKET16 s, LONG cmd, ULONG *argp)
> {
> return WS_ioctlsocket( s, cmd, argp ); /* <- line 319 */
> }
> Is it wrong "BSD-only" u_long in this function? Should WS_ioctlsocket
> be fixed to use a ULONG pointer?
No that would just move the problem, because WS_ioctlsocket is also the
implementation for ioctlsocket, which takes a pointer to u_long. Maybe
something like this will do?
INT16 WINAPI ioctlsocket16(SOCKET16 s, LONG cmd, ULONG *argp)
{
u_long arg = *argp;
return WS_ioctlsocket( s, cmd, &arg );
}
-Hans
More information about the wine-devel
mailing list