Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
b47bd455
Commit
b47bd455
authored
Jan 28, 2016
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Fix initialization of mailslot objects that don't have a name.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
41cb62ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
mailslot.c
server/mailslot.c
+6
-1
No files found.
server/mailslot.c
View file @
b47bd455
...
...
@@ -403,7 +403,11 @@ static struct mailslot *create_mailslot( struct directory *root,
struct
mailslot
*
mailslot
;
int
fds
[
2
];
if
(
!
name
||
!
name
->
len
)
return
alloc_object
(
&
mailslot_ops
);
if
(
!
name
||
!
name
->
len
)
{
mailslot
=
alloc_object
(
&
mailslot_ops
);
goto
init
;
}
if
(
!
(
obj
=
find_object_dir
(
root
,
name
,
attr
,
&
new_name
)))
{
...
...
@@ -435,6 +439,7 @@ static struct mailslot *create_mailslot( struct directory *root,
mailslot
=
create_object
(
dev
->
mailslots
,
&
mailslot_ops
,
&
new_name
,
NULL
);
release_object
(
dev
);
init:
if
(
!
mailslot
)
return
NULL
;
mailslot
->
fd
=
NULL
;
...
...
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