Added patch to avoid race-conditions with write watches in WS2_async_accept.

This commit is contained in:
Sebastian Lackner
2015-02-10 07:37:49 +01:00
parent e8d4cc0cb0
commit 1ffd40e9de
6 changed files with 83 additions and 4 deletions

View File

@@ -12,8 +12,7 @@ diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index 322c5ed..42c7832 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -364,6 +364,18 @@ typedef struct ws2_accept_async
struct ws2_async *read;
@@ -365,4 +365,16 @@ typedef struct ws2_accept_async
} ws2_accept_async;
+typedef struct ws2_transmitfile_async
@@ -30,7 +29,6 @@ index 322c5ed..42c7832 100644
+
/****************************************************************/
/* ----------------------------------- internal data */
@@ -2511,6 +2523,16 @@ static BOOL WS2_transmitfile_base( SOCKET s, HANDLE h, DWORD total_bytes, DWORD
buffer = HeapAlloc( GetProcessHeap(), 0, bytes_per_send );
if (!buffer) goto cleanup;