Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
7d1d002d
Commit
7d1d002d
authored
Apr 01, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Set a proper error code when dup_fd_object fails.
parent
bfd0866b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
fd.c
server/fd.c
+6
-2
No files found.
server/fd.c
View file @
7d1d002d
...
...
@@ -1628,6 +1628,7 @@ struct fd *dup_fd_object( struct fd *orig, unsigned int access, unsigned int sha
if
(
!
closed
)
goto
failed
;
if
((
fd
->
unix_fd
=
dup
(
orig
->
unix_fd
))
==
-
1
)
{
file_set_error
();
free
(
closed
);
goto
failed
;
}
...
...
@@ -1637,8 +1638,11 @@ struct fd *dup_fd_object( struct fd *orig, unsigned int access, unsigned int sha
fd
->
inode
=
(
struct
inode
*
)
grab_object
(
orig
->
inode
);
list_add_head
(
&
fd
->
inode
->
open
,
&
fd
->
inode_entry
);
}
else
if
((
fd
->
unix_fd
=
dup
(
orig
->
unix_fd
))
==
-
1
)
goto
failed
;
else
if
((
fd
->
unix_fd
=
dup
(
orig
->
unix_fd
))
==
-
1
)
{
file_set_error
();
goto
failed
;
}
return
fd
;
failed:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment