Sebastian Lackner : ws2_32: Use wine_server_release_fd to close file descriptor.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Oct 26 09:58:33 CDT 2015


Module: wine
Branch: master
Commit: 5529fc736ee4ab5f3168f2ca5e2f76c8b778348c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5529fc736ee4ab5f3168f2ca5e2f76c8b778348c

Author: Sebastian Lackner <sebastian at fds-team.de>
Date:   Sun Oct 25 01:10:18 2015 +0200

ws2_32: Use wine_server_release_fd to close file descriptor.

Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ws2_32/socket.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index b0cbb11..1cad112 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -2776,7 +2776,7 @@ static NTSTATUS WS2_ReadFile(HANDLE hFile, PIO_STATUS_BLOCK io_status, char* buf
     else
         status = STATUS_PENDING;
 
-    close( unix_handle );
+    wine_server_release_fd( hFile, unix_handle );
     TRACE("= 0x%08x (%d)\n", status, result);
     if (status == STATUS_SUCCESS || status == STATUS_END_OF_FILE)
     {




More information about the wine-cvs mailing list