ws2_32: Use wine_server_release_fd to close file descriptor.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
54ecab2479
commit
5529fc736e
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue