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
33a80885
Commit
33a80885
authored
Feb 17, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Feb 18, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fill the object type index in System(Extended)HandleInformation.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1f1d4da5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
5 deletions
+10
-5
system.c
dlls/ntdll/unix/system.c
+4
-2
server_protocol.h
include/wine/server_protocol.h
+2
-1
handle.c
server/handle.c
+1
-0
protocol.def
server/protocol.def
+1
-0
trace.c
server/trace.c
+2
-2
No files found.
dlls/ntdll/unix/system.c
View file @
33a80885
...
...
@@ -2447,7 +2447,8 @@ NTSTATUS WINAPI NtQuerySystemInformation( SYSTEM_INFORMATION_CLASS class,
shi
->
Handle
[
i
].
HandleValue
=
handle_info
[
i
].
handle
;
shi
->
Handle
[
i
].
AccessMask
=
handle_info
[
i
].
access
;
shi
->
Handle
[
i
].
HandleFlags
=
handle_info
[
i
].
attributes
;
/* FIXME: Fill out ObjectType, ObjectPointer */
shi
->
Handle
[
i
].
ObjectType
=
handle_info
[
i
].
type
;
/* FIXME: Fill out ObjectPointer */
}
}
else
if
(
ret
==
STATUS_BUFFER_TOO_SMALL
)
...
...
@@ -2498,7 +2499,8 @@ NTSTATUS WINAPI NtQuerySystemInformation( SYSTEM_INFORMATION_CLASS class,
shi
->
Handles
[
i
].
HandleValue
=
handle_info
[
i
].
handle
;
shi
->
Handles
[
i
].
GrantedAccess
=
handle_info
[
i
].
access
;
shi
->
Handles
[
i
].
HandleAttributes
=
handle_info
[
i
].
attributes
;
/* FIXME: Fill out Object, ObjectTypeIndex */
shi
->
Handles
[
i
].
ObjectTypeIndex
=
handle_info
[
i
].
type
;
/* FIXME: Fill out Object */
}
}
else
if
(
ret
==
STATUS_BUFFER_TOO_SMALL
)
...
...
include/wine/server_protocol.h
View file @
33a80885
...
...
@@ -4544,6 +4544,7 @@ struct handle_info
obj_handle_t
handle
;
unsigned
int
access
;
unsigned
int
attributes
;
unsigned
int
type
;
};
...
...
@@ -6227,7 +6228,7 @@ union generic_reply
/* ### protocol_version begin ### */
#define SERVER_PROTOCOL_VERSION 68
3
#define SERVER_PROTOCOL_VERSION 68
4
/* ### protocol_version end ### */
...
...
server/handle.c
View file @
33a80885
...
...
@@ -833,6 +833,7 @@ static int enum_handles( struct process *process, void *user )
handle
->
owner
=
process
->
id
;
handle
->
handle
=
index_to_handle
(
i
);
handle
->
access
=
entry
->
access
&
~
RESERVED_ALL
;
handle
->
type
=
entry
->
ptr
->
ops
->
type
->
index
;
handle
->
attributes
=
0
;
if
(
entry
->
access
&
RESERVED_INHERIT
)
handle
->
attributes
|=
OBJ_INHERIT
;
if
(
entry
->
access
&
RESERVED_CLOSE_PROTECT
)
handle
->
attributes
|=
OBJ_PROTECT_CLOSE
;
...
...
server/protocol.def
View file @
33a80885
...
...
@@ -3198,6 +3198,7 @@ struct handle_info
obj_handle_t handle;
unsigned int access;
unsigned int attributes;
unsigned int type;
};
/* Return a list of all opened handles */
...
...
server/trace.c
View file @
33a80885
...
...
@@ -1342,8 +1342,8 @@ static void dump_varargs_handle_infos( const char *prefix, data_size_t size )
while
(
size
>=
sizeof
(
*
handle
))
{
handle
=
cur_data
;
fprintf
(
stderr
,
"{owner=%04x,handle=%04x,access=%08x,attributes=%08x}"
,
handle
->
owner
,
handle
->
handle
,
handle
->
access
,
handle
->
attributes
);
fprintf
(
stderr
,
"{owner=%04x,handle=%04x,access=%08x,attributes=%08x
,type=%u
}"
,
handle
->
owner
,
handle
->
handle
,
handle
->
access
,
handle
->
attributes
,
handle
->
type
);
size
-=
sizeof
(
*
handle
);
remove_data
(
sizeof
(
*
handle
)
);
if
(
size
)
fputc
(
','
,
stderr
);
...
...
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