Module: wine
Branch: master
Commit: 96b6bf6111e841c2a0791c5d99045a1ef7062f48
URL:
https://gitlab.winehq.org/wine/wine/-/commit/96b6bf6111e841c2a0791c5d99045a…
Author: Paul Gofman <pgofman(a)codeweavers.com>
Date: Fri Jul 28 15:22:42 2023 -0600
winhttp: Set FILE_SKIP_COMPLETION_PORT_ON_SUCCESS on sockets.
---
dlls/winhttp/net.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/winhttp/net.c b/dlls/winhttp/net.c
index 6eeb1cb5ac9..3a5847865bf 100644
--- a/dlls/winhttp/net.c
+++ b/dlls/winhttp/net.c
@@ -25,6 +25,7 @@
#include "ws2tcpip.h"
#include "winhttp.h"
#include "schannel.h"
+#include "winternl.h"
#include "wine/debug.h"
#include "winhttp_private.h"
@@ -223,6 +224,8 @@ DWORD netconn_create( struct hostdata *host, const struct
sockaddr_storage *sock
free( conn );
return ret;
}
+ if (!SetFileCompletionNotificationModes( (HANDLE)(UINT_PTR)conn->socket,
FILE_SKIP_COMPLETION_PORT_ON_SUCCESS ))
+ ERR( "SetFileCompletionNotificationModes failed.\n" );
switch (conn->sockaddr.ss_family)
{