https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f6c50cb93d50cd988b8a6…
commit f6c50cb93d50cd988b8a620b671f69db97b7adc9
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Sun Feb 24 21:25:39 2019 +0100
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Sun Feb 24 21:25:39 2019 +0100
[MSAFD] Make WSPSetSockOpt() SO_RCVBUF stub return success
---
dll/win32/msafd/misc/dllmain.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/dll/win32/msafd/misc/dllmain.c b/dll/win32/msafd/misc/dllmain.c
index e604d2f15a..c761cff13e 100644
--- a/dll/win32/msafd/misc/dllmain.c
+++ b/dll/win32/msafd/misc/dllmain.c
@@ -2870,6 +2870,17 @@ WSPSetSockOpt(
ERR("Setting send buf to %x is not implemented yet\n", optval);
return NO_ERROR;
+ case SO_RCVBUF:
+ if (optlen < sizeof(DWORD))
+ {
+ if (lpErrno) *lpErrno = WSAEFAULT;
+ return SOCKET_ERROR;
+ }
+
+ /* TODO: The total per-socket buffer space reserved for receives */
+ ERR("Setting receive buf to %x is not implemented yet\n",
optval);
+ return NO_ERROR;
+
case SO_ERROR:
if (optlen < sizeof(INT))
{