Commit 96b6bf61 authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

winhttp: Set FILE_SKIP_COMPLETION_PORT_ON_SUCCESS on sockets.

parent abdca2f7
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include "ws2tcpip.h" #include "ws2tcpip.h"
#include "winhttp.h" #include "winhttp.h"
#include "schannel.h" #include "schannel.h"
#include "winternl.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "winhttp_private.h" #include "winhttp_private.h"
...@@ -223,6 +224,8 @@ DWORD netconn_create( struct hostdata *host, const struct sockaddr_storage *sock ...@@ -223,6 +224,8 @@ DWORD netconn_create( struct hostdata *host, const struct sockaddr_storage *sock
free( conn ); free( conn );
return ret; return ret;
} }
if (!SetFileCompletionNotificationModes( (HANDLE)(UINT_PTR)conn->socket, FILE_SKIP_COMPLETION_PORT_ON_SUCCESS ))
ERR( "SetFileCompletionNotificationModes failed.\n" );
switch (conn->sockaddr.ss_family) switch (conn->sockaddr.ss_family)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment