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
5e9b1a3c
Commit
5e9b1a3c
authored
Sep 22, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Return the device name for device files.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2e51f9aa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
ntoskrnl.c
dlls/ntoskrnl.exe/tests/ntoskrnl.c
+1
-1
device.c
server/device.c
+8
-1
No files found.
dlls/ntoskrnl.exe/tests/ntoskrnl.c
View file @
5e9b1a3c
...
...
@@ -511,7 +511,7 @@ static void test_object_info(void)
status
=
NtQueryObject
(
device
,
ObjectNameInformation
,
buffer
,
sizeof
(
buffer
),
NULL
);
ok
(
!
status
,
"got %#x
\n
"
,
status
);
todo_wine
ok
(
compare_unicode_string
(
name_info
->
Name
.
Buffer
,
name_info
->
Name
.
Length
,
L"
\\
Device
\\
WineTestDriver"
),
ok
(
compare_unicode_string
(
name_info
->
Name
.
Buffer
,
name_info
->
Name
.
Length
,
L"
\\
Device
\\
WineTestDriver"
),
"wrong name %s
\n
"
,
debugstr_w
(
name_info
->
Name
.
Buffer
));
status
=
NtQueryObject
(
device
,
ObjectTypeInformation
,
buffer
,
sizeof
(
buffer
),
NULL
);
...
...
server/device.c
View file @
5e9b1a3c
...
...
@@ -184,6 +184,7 @@ struct device_file
static
void
device_file_dump
(
struct
object
*
obj
,
int
verbose
);
static
struct
fd
*
device_file_get_fd
(
struct
object
*
obj
);
static
WCHAR
*
device_file_get_full_name
(
struct
object
*
obj
,
data_size_t
*
len
);
static
struct
list
*
device_file_get_kernel_obj_list
(
struct
object
*
obj
);
static
int
device_file_close_handle
(
struct
object
*
obj
,
struct
process
*
process
,
obj_handle_t
handle
);
static
void
device_file_destroy
(
struct
object
*
obj
);
...
...
@@ -208,7 +209,7 @@ static const struct object_ops device_file_ops =
default_fd_map_access
,
/* map_access */
default_get_sd
,
/* get_sd */
default_set_sd
,
/* set_sd */
no_get_full_name
,
/* get_full_name */
device_file_get_full_name
,
/* get_full_name */
no_lookup_name
,
/* lookup_name */
no_link_name
,
/* link_name */
NULL
,
/* unlink_name */
...
...
@@ -506,6 +507,12 @@ static struct fd *device_file_get_fd( struct object *obj )
return
(
struct
fd
*
)
grab_object
(
file
->
fd
);
}
static
WCHAR
*
device_file_get_full_name
(
struct
object
*
obj
,
data_size_t
*
len
)
{
struct
device_file
*
file
=
(
struct
device_file
*
)
obj
;
return
file
->
device
->
obj
.
ops
->
get_full_name
(
&
file
->
device
->
obj
,
len
);
}
static
struct
list
*
device_file_get_kernel_obj_list
(
struct
object
*
obj
)
{
struct
device_file
*
file
=
(
struct
device_file
*
)
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