Author: phater Date: Wed Nov 9 12:05:48 2016 New Revision: 73177
URL: http://svn.reactos.org/svn/reactos?rev=73177&view=rev Log: [MSAFD] Fix possible memory corruption in WSPIoctl. Brought to you by Andreas Maier aka andy-123. Thanks. CORE-12322
Modified: trunk/reactos/dll/win32/msafd/misc/dllmain.c
Modified: trunk/reactos/dll/win32/msafd/misc/dllmain.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msafd/misc/dllmai... ============================================================================== --- trunk/reactos/dll/win32/msafd/misc/dllmain.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/msafd/misc/dllmain.c [iso-8859-1] Wed Nov 9 12:05:48 2016 @@ -2250,7 +2250,7 @@ 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 @@ &cbRet, lpOverlapped, lpCompletionRoutine, - (LPBOOL)&NeedsCompletion); + &NeedsCompletion);
if (Errno == NO_ERROR) Ret = NO_ERROR;