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
10a38ef0
Commit
10a38ef0
authored
Feb 12, 2016
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Require a directory as root to open an object with a name.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ff9d90bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
handle.c
server/handle.c
+8
-1
No files found.
server/handle.c
View file @
10a38ef0
...
...
@@ -592,7 +592,14 @@ obj_handle_t open_object( struct process *process, obj_handle_t parent, unsigned
return
0
;
}
if
(
parent
&&
!
(
root
=
get_handle_obj
(
process
,
parent
,
0
,
NULL
)))
return
0
;
if
(
parent
)
{
if
(
name
->
len
)
root
=
get_directory_obj
(
process
,
parent
);
else
/* opening the object itself can work for non-directories too */
root
=
get_handle_obj
(
process
,
parent
,
0
,
NULL
);
if
(
!
root
)
return
0
;
}
if
((
obj
=
open_named_object
(
root
,
ops
,
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