[WS2_32]
authorCameron Gutman <aicommander@gmail.com>
Sat, 14 Aug 2010 13:48:31 +0000 (13:48 +0000)
committerCameron Gutman <aicommander@gmail.com>
Sat, 14 Aug 2010 13:48:31 +0000 (13:48 +0000)
- 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

index 4772819..6eeb37e 100644 (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);
 }