[MSAFD] Fix possible memory corruption in WSPIoctl. Brought to you by Andreas Maier...
authorPeter Hater <7element@mail.bg>
Wed, 9 Nov 2016 12:05:48 +0000 (12:05 +0000)
committerPeter Hater <7element@mail.bg>
Wed, 9 Nov 2016 12:05:48 +0000 (12:05 +0000)
CORE-12322

svn path=/trunk/; revision=73177

reactos/dll/win32/msafd/misc/dllmain.c

index c8d1480..d03d613 100644 (file)
@@ -2250,7 +2250,7 @@ WSPIoctl(IN  SOCKET Handle,
          OUT LPINT lpErrno)
 {
     PSOCKET_INFORMATION Socket = NULL;
-    BOOLEAN NeedsCompletion = lpOverlapped != NULL;
+    BOOL NeedsCompletion = lpOverlapped != NULL;
     BOOLEAN NonBlocking;
     INT Errno = NO_ERROR, Ret = SOCKET_ERROR;
     DWORD cbRet = 0;
@@ -2394,7 +2394,7 @@ WSPIoctl(IN  SOCKET Handle,
                                                  &cbRet,
                                                  lpOverlapped,
                                                  lpCompletionRoutine,
-                                                 (LPBOOL)&NeedsCompletion);
+                                                 &NeedsCompletion);
 
             if (Errno == NO_ERROR)
                 Ret = NO_ERROR;