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

This commit is contained in:
Alexandre Julliard 2006-11-21 22:38:51 +01:00
parent a7c1b0e0c6
commit 881095d720
1 changed files with 1 additions and 1 deletions

View File

@ -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) if ((fd = receive_fd( &fd_handle )) != -1)
{ {
assert( fd_handle == handle ); 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; else ret = STATUS_TOO_MANY_OPENED_FILES;
} }