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
4e380b9e
Commit
4e380b9e
authored
Feb 08, 2016
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Use the generic named object functions for mailslots.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7a5b14d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
32 deletions
+1
-32
mailslot.c
server/mailslot.c
+1
-32
No files found.
server/mailslot.c
View file @
4e380b9e
...
...
@@ -418,41 +418,10 @@ static struct mailslot *create_mailslot( struct directory *root,
int
max_msgsize
,
timeout_t
read_timeout
,
const
struct
security_descriptor
*
sd
)
{
struct
object
*
obj
;
struct
unicode_str
new_name
;
struct
mailslot
*
mailslot
;
int
fds
[
2
];
if
(
!
name
||
!
name
->
len
)
{
mailslot
=
alloc_object
(
&
mailslot_ops
);
goto
init
;
}
if
(
!
(
obj
=
find_object_dir
(
root
,
name
,
attr
,
&
new_name
)))
{
set_error
(
STATUS_OBJECT_NAME_INVALID
);
return
NULL
;
}
if
(
!
new_name
.
len
)
{
if
(
attr
&
OBJ_OPENIF
&&
obj
->
ops
==
&
mailslot_ops
)
/* it already exists - there can only be one mailslot to read from */
set_error
(
STATUS_OBJECT_NAME_EXISTS
);
else
if
(
attr
&
OBJ_OPENIF
)
set_error
(
STATUS_OBJECT_TYPE_MISMATCH
);
else
set_error
(
STATUS_OBJECT_NAME_COLLISION
);
release_object
(
obj
);
return
NULL
;
}
mailslot
=
create_object
(
obj
,
&
mailslot_ops
,
&
new_name
);
release_object
(
obj
);
init:
if
(
!
mailslot
)
return
NULL
;
if
(
!
(
mailslot
=
create_named_object_dir
(
root
,
name
,
attr
,
&
mailslot_ops
)))
return
NULL
;
mailslot
->
fd
=
NULL
;
mailslot
->
write_fd
=
-
1
;
...
...
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