commit | 63411dbde5aa6faeee64cfab9af35c4a74b6dc4d | [log] [tgz] |
---|---|---|
author | Alexandre Julliard <julliard@winehq.org> | Fri Dec 22 21:12:36 2000 +0000 |
committer | Alexandre Julliard <julliard@winehq.org> | Fri Dec 22 21:12:36 2000 +0000 |
tree | c14d679cb53307d8ff418ab0619f4fc0d0182d47 | |
parent | 2930b9c461e49d27318d72a5aa6452f9b1f2b59d [diff] [blame] |
Avoid dup'ing file descriptors when not necessary. Do not send fd to the client if ops->get_fd() fails.
diff --git a/server/pipe.c b/server/pipe.c index 7838c12..47dfb61 100644 --- a/server/pipe.c +++ b/server/pipe.c
@@ -122,7 +122,7 @@ set_error( STATUS_PIPE_BROKEN ); return -1; } - return dup( pipe->obj.fd ); + return pipe->obj.fd; } static int pipe_get_info( struct object *obj, struct get_file_info_request *req )