Module: wine
Branch: master
Commit: 388e7a76558aeeed8e91515b177cb356b79cd2ae
URL: https://source.winehq.org/git/wine.git/?a=commit;h=388e7a76558aeeed8e91515b…
Author: Zebediah Figura <z.figura12(a)gmail.com>
Date: Fri Jun 25 20:21:07 2021 -0500
ws2_32: Use IOCTL_AFD_WINE_SET_SO_RCVBUF.
Signed-off-by: Zebediah Figura <z.figura12(a)gmail.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/ws2_32/socket.c | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index 88d8e9bf134..4982b08934b 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -3559,6 +3559,9 @@ int WINAPI WS_setsockopt(SOCKET s, int level, int optname,
case WS_SO_OOBINLINE:
return server_setsockopt( s, IOCTL_AFD_WINE_SET_SO_OOBINLINE, optval, optlen );
+ case WS_SO_RCVBUF:
+ return server_setsockopt( s, IOCTL_AFD_WINE_SET_SO_RCVBUF, optval, optlen );
+
/* Some options need some conversion before they can be sent to
* setsockopt. The conversions are done here, then they will fall through
* to the general case. Special options that are not passed to
@@ -3575,14 +3578,6 @@ int WINAPI WS_setsockopt(SOCKET s, int level, int optname,
convert_sockopt(&level, &optname);
break;
- case WS_SO_RCVBUF:
- if (*(const int*)optval < 2048)
- {
- WARN("SO_RCVBF for %d bytes is too small: ignored\n", *(const int*)optval );
- return 0;
- }
- /* Fall through */
-
/* The options listed here don't need any special handling. Thanks to
* the conversion happening above, options from there will fall through
* to this, too.*/
Module: wine
Branch: master
Commit: 4cf888007f08ba3a3d72bc3d4712085756e40ec6
URL: https://source.winehq.org/git/wine.git/?a=commit;h=4cf888007f08ba3a3d72bc3d…
Author: Jacek Caban <jacek(a)codeweavers.com>
Date: Mon Jun 28 16:20:41 2021 +0200
include: Add proofofpossessioncookieinfo.idl file.
Signed-off-by: Jacek Caban <jacek(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
include/Makefile.in | 1 +
include/proofofpossessioncookieinfo.idl | 70 +++++++++++++++++++++++++++++++++
2 files changed, 71 insertions(+)
diff --git a/include/Makefile.in b/include/Makefile.in
index 4a8c261bb8f..e6477d13cef 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -581,6 +581,7 @@ SOURCES = \
powrprof.h \
prntvpt.h \
profinfo.h \
+ proofofpossessioncookieinfo.idl \
propidl.idl \
propkey.h \
propkeydef.h \
diff --git a/include/proofofpossessioncookieinfo.idl b/include/proofofpossessioncookieinfo.idl
new file mode 100644
index 00000000000..3d639523e8a
--- /dev/null
+++ b/include/proofofpossessioncookieinfo.idl
@@ -0,0 +1,70 @@
+/*
+ * Copyright 2021 Jacek Caban for CodeWeavers
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+import "oaidl.idl";
+import "ocidl.idl";
+
+typedef struct ProofOfPossessionCookieInfo
+{
+ LPWSTR name;
+ LPWSTR data;
+ DWORD flags;
+ LPWSTR p3pHeader;
+} ProofOfPossessionCookieInfo;
+
+
+cpp_quote("static inline void FreeProofOfPossessionCookieInfoArray(ProofOfPossessionCookieInfo *cookie_info, DWORD count)")
+cpp_quote("{")
+cpp_quote(" unsigned int i;")
+cpp_quote(" for (i = 0; i < count; i++)")
+cpp_quote(" {")
+cpp_quote(" CoTaskMemFree(cookie_info[i].name);")
+cpp_quote(" CoTaskMemFree(cookie_info[i].data);")
+cpp_quote(" CoTaskMemFree(cookie_info[i].p3pHeader);")
+cpp_quote(" }")
+cpp_quote(" CoTaskMemFree(cookie_info);")
+cpp_quote("}")
+
+
+[
+ object,
+ uuid(cdaece56-4edf-43df-b113-88e4556fa1bb),
+ pointer_default(unique)
+]
+interface IProofOfPossessionCookieInfoManager : IUnknown
+{
+ HRESULT GetCookieInfoForUri([in] LPCWSTR uri,
+ [out] DWORD *cookieInfoCount,
+ [out, size_is(,*cookieInfoCount)] ProofOfPossessionCookieInfo **cookieInfo);
+}
+
+
+[
+ uuid(7681a019-8f51-4594-9507-f27040f71f01),
+ version(1.0)
+]
+library ProofOfPossessionCookieInfoManagerLib
+{
+ [
+ uuid(a9927f85-a304-4390-8b23-a75f1c668600)
+ ]
+ coclass ProofOfPossessionCookieInfoManager
+ {
+ [default] interface IProofOfPossessionCookieInfoManager;
+ }
+}