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
52f9aced
Commit
52f9aced
authored
Nov 02, 2015
by
Sebastian Lackner
Committed by
Alexandre Julliard
Nov 02, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Clear last error when creating object without name.
Signed-off-by:
Sebastian Lackner
<
sebastian@fds-team.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b5c12faa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
3 deletions
+15
-3
directory.c
server/directory.c
+5
-1
named_pipe.c
server/named_pipe.c
+5
-1
object.c
server/object.c
+5
-1
No files found.
server/directory.c
View file @
52f9aced
...
...
@@ -287,7 +287,11 @@ void *create_named_object_dir( struct directory *root, const struct unicode_str
struct
object
*
obj
,
*
new_obj
=
NULL
;
struct
unicode_str
new_name
;
if
(
!
name
||
!
name
->
len
)
return
alloc_object
(
ops
);
if
(
!
name
||
!
name
->
len
)
{
if
((
new_obj
=
alloc_object
(
ops
)))
clear_error
();
return
new_obj
;
}
if
(
!
(
obj
=
find_object_dir
(
root
,
name
,
attributes
,
&
new_name
)))
return
NULL
;
if
(
!
new_name
.
len
)
...
...
server/named_pipe.c
View file @
52f9aced
...
...
@@ -671,7 +671,11 @@ static struct named_pipe *create_named_pipe( struct directory *root, const struc
struct
named_pipe
*
pipe
=
NULL
;
struct
unicode_str
new_name
;
if
(
!
name
||
!
name
->
len
)
return
alloc_object
(
&
named_pipe_ops
);
if
(
!
name
||
!
name
->
len
)
{
if
((
pipe
=
alloc_object
(
&
named_pipe_ops
)))
clear_error
();
return
pipe
;
}
if
(
!
(
obj
=
find_object_dir
(
root
,
name
,
attr
,
&
new_name
)))
{
...
...
server/object.c
View file @
52f9aced
...
...
@@ -242,7 +242,11 @@ void *create_named_object( struct namespace *namespace, const struct object_ops
{
struct
object
*
obj
;
if
(
!
name
||
!
name
->
len
)
return
alloc_object
(
ops
);
if
(
!
name
||
!
name
->
len
)
{
if
((
obj
=
alloc_object
(
ops
)))
clear_error
();
return
obj
;
}
if
((
obj
=
find_object
(
namespace
,
name
,
attributes
)))
{
...
...
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