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
39e60dc6
Commit
39e60dc6
authored
Feb 09, 2016
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Support opening objects from any root, not only directories.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7ad32cf5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
om.c
dlls/ntdll/tests/om.c
+0
-1
handle.c
server/handle.c
+3
-4
No files found.
dlls/ntdll/tests/om.c
View file @
39e60dc6
...
...
@@ -551,7 +551,6 @@ static void test_name_limits(void)
status
=
pNtOpenSymbolicLinkObject
(
&
ret2
,
GENERIC_ALL
,
&
attr
);
ok
(
status
==
STATUS_OBJECT_TYPE_MISMATCH
,
"%u: NtOpenSymbolicLinkObject failed %x
\n
"
,
str
.
Length
,
status
);
status
=
pNtOpenSymbolicLinkObject
(
&
ret2
,
GENERIC_ALL
,
&
attr3
);
todo_wine
ok
(
status
==
STATUS_SUCCESS
,
"%u: NtOpenSymbolicLinkObject failed %x
\n
"
,
str
.
Length
,
status
);
pNtClose
(
ret2
);
pNtClose
(
ret
);
...
...
server/handle.c
View file @
39e60dc6
...
...
@@ -578,8 +578,7 @@ obj_handle_t open_object( struct process *process, obj_handle_t parent, unsigned
unsigned
int
attributes
)
{
obj_handle_t
handle
=
0
;
struct
directory
*
root
=
NULL
;
struct
object
*
obj
;
struct
object
*
obj
,
*
root
=
NULL
;
if
(
name
->
len
>=
65534
)
{
...
...
@@ -587,9 +586,9 @@ obj_handle_t open_object( struct process *process, obj_handle_t parent, unsigned
return
0
;
}
if
(
parent
&&
!
(
root
=
get_
directory_obj
(
process
,
parent
,
0
)))
return
0
;
if
(
parent
&&
!
(
root
=
get_
handle_obj
(
process
,
parent
,
0
,
NULL
)))
return
0
;
if
((
obj
=
open_
object_dir
(
root
,
name
,
attributes
,
op
s
)))
if
((
obj
=
open_
named_object
(
root
,
ops
,
name
,
attribute
s
)))
{
handle
=
alloc_handle
(
process
,
obj
,
access
,
attributes
);
release_object
(
obj
);
...
...
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