- Create a temporary variable and pass that to WSAIoctl for the bytes returned value instead of passing argp and corrupting the value we just retrieved

svn path=/trunk/; revision=48545
This commit is contained in:
Cameron Gutman 2010-08-14 13:48:31 +00:00
parent 0be662421f
commit ccfa72f607

View file

@ -586,13 +586,15 @@ ioctlsocket(IN SOCKET s,
IN LONG cmd,
IN OUT ULONG FAR* argp)
{
ULONG tmp;
return WSAIoctl(s,
cmd,
argp,
sizeof(ULONG),
argp,
sizeof(ULONG),
argp,
&tmp,
0,
0);
}