Commit 881095d7 authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Setting the needs_close flag in server_get_unix_fd got lost in the previous change.

parent a7c1b0e0
......@@ -569,7 +569,7 @@ int server_get_unix_fd( obj_handle_t handle, unsigned int access, int *unix_fd,
if ((fd = receive_fd( &fd_handle )) != -1)
{
assert( fd_handle == handle );
if (!removable) add_fd_to_cache( handle, fd, reply->type );
*needs_close = removable || !add_fd_to_cache( handle, fd, reply->type );
}
else ret = STATUS_TOO_MANY_OPENED_FILES;
}
......
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