[ros-diffs] [cgutman] 48545: [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

cgutman at svn.reactos.org cgutman at svn.reactos.org
Sat Aug 14 13:48:32 UTC 2010


Author: cgutman
Date: Sat Aug 14 13:48:31 2010
New Revision: 48545

URL: http://svn.reactos.org/svn/reactos?rev=48545&view=rev
Log:
[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

Modified:
    trunk/reactos/dll/win32/ws2_32/misc/dllmain.c

Modified: trunk/reactos/dll/win32/ws2_32/misc/dllmain.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/ws2_32/misc/dllmain.c?rev=48545&r1=48544&r2=48545&view=diff
==============================================================================
--- trunk/reactos/dll/win32/ws2_32/misc/dllmain.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/ws2_32/misc/dllmain.c [iso-8859-1] Sat Aug 14 13:48:31 2010
@@ -586,13 +586,15 @@
             IN     LONG cmd,
             IN OUT ULONG FAR* argp)
 {
+	ULONG tmp;
+	
     return WSAIoctl(s,
                     cmd,
                     argp,
                     sizeof(ULONG),
                     argp,
                     sizeof(ULONG),
-                    argp,
+                    &tmp,
                     0,
                     0);
 }




More information about the Ros-diffs mailing list