https://git.reactos.org/?p=reactos.git;a=commitdiff;h=a8236e3fa9ca353fe9e2d…
commit a8236e3fa9ca353fe9e2d147ef45bcdc4b713dce
Author: Serge Gautherie <reactos-git_serge_171003(a)gautherie.fr>
AuthorDate: Thu Oct 17 12:33:29 2019 +0200
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Sat Oct 19 10:50:03 2019 +0200
[MSAFD] SizeOf*Buffer: Type is ULONG, not INT/DWORD
---
dll/win32/msafd/misc/dllmain.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/dll/win32/msafd/misc/dllmain.c b/dll/win32/msafd/misc/dllmain.c
index 4f01f6f2883..4f8e76c10a3 100644
--- a/dll/win32/msafd/misc/dllmain.c
+++ b/dll/win32/msafd/misc/dllmain.c
@@ -2638,12 +2638,12 @@ WSPGetSockOpt(IN SOCKET Handle,
case SO_RCVBUF:
Buffer = &Socket->SharedData->SizeOfRecvBuffer;
- BufferSize = sizeof(INT);
+ BufferSize = sizeof(ULONG);
break;
case SO_SNDBUF:
Buffer = &Socket->SharedData->SizeOfSendBuffer;
- BufferSize = sizeof(INT);
+ BufferSize = sizeof(ULONG);
break;
case SO_ACCEPTCONN:
@@ -2860,7 +2860,7 @@ WSPSetSockOpt(
return NO_ERROR;
case SO_SNDBUF:
- if (optlen < sizeof(DWORD))
+ if (optlen < sizeof(ULONG))
{
if (lpErrno) *lpErrno = WSAEFAULT;
return SOCKET_ERROR;
@@ -2884,7 +2884,7 @@ WSPSetSockOpt(
return NO_ERROR;
case SO_RCVBUF:
- if (optlen < sizeof(DWORD))
+ if (optlen < sizeof(ULONG))
{
if (lpErrno) *lpErrno = WSAEFAULT;
return SOCKET_ERROR;