From ccfa72f6077e0961061148694c1953d116633f51 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 14 Aug 2010 13:48:31 +0000 Subject: [PATCH] [WS2_32] - 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 --- reactos/dll/win32/ws2_32/misc/dllmain.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reactos/dll/win32/ws2_32/misc/dllmain.c b/reactos/dll/win32/ws2_32/misc/dllmain.c index 4772819eca9..6eeb37efcac 100644 --- a/reactos/dll/win32/ws2_32/misc/dllmain.c +++ b/reactos/dll/win32/ws2_32/misc/dllmain.c @@ -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); }