Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
7b910f40
Commit
7b910f40
authored
Dec 09, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Use attributes instead of inherit flag in dup_handle request.
parent
836d07c3
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
10 deletions
+10
-10
om.c
dlls/ntdll/om.c
+1
-1
server_protocol.h
include/wine/server_protocol.h
+3
-3
handle.c
server/handle.c
+2
-2
protocol.def
server/protocol.def
+2
-2
trace.c
server/trace.c
+2
-2
No files found.
dlls/ntdll/om.c
View file @
7b910f40
...
...
@@ -306,7 +306,7 @@ NTSTATUS WINAPI NtDuplicateObject( HANDLE source_process, HANDLE source,
req
->
src_handle
=
source
;
req
->
dst_process
=
dest_process
;
req
->
access
=
access
;
req
->
inherit
=
(
attributes
&
OBJ_INHERIT
)
!=
0
;
req
->
attributes
=
attributes
;
req
->
options
=
options
;
if
(
!
(
ret
=
wine_server_call
(
req
)))
...
...
include/wine/server_protocol.h
View file @
7b910f40
...
...
@@ -547,8 +547,8 @@ struct dup_handle_request
obj_handle_t
src_handle
;
obj_handle_t
dst_process
;
unsigned
int
access
;
int
inherit
;
int
options
;
unsigned
int
attributes
;
unsigned
int
options
;
};
struct
dup_handle_reply
{
...
...
@@ -4321,6 +4321,6 @@ union generic_reply
struct
query_symlink_reply
query_symlink_reply
;
};
#define SERVER_PROTOCOL_VERSION 21
3
#define SERVER_PROTOCOL_VERSION 21
4
#endif
/* __WINE_WINE_SERVER_PROTOCOL_H */
server/handle.c
View file @
7b910f40
...
...
@@ -573,12 +573,12 @@ DECL_HANDLER(dup_handle)
if
(
req
->
options
&
DUP_HANDLE_MAKE_GLOBAL
)
{
reply
->
handle
=
duplicate_handle
(
src
,
req
->
src_handle
,
NULL
,
req
->
access
,
req
->
inherit
,
req
->
options
);
req
->
access
,
req
->
attributes
&
OBJ_INHERIT
,
req
->
options
);
}
else
if
((
dst
=
get_process_from_handle
(
req
->
dst_process
,
PROCESS_DUP_HANDLE
)))
{
reply
->
handle
=
duplicate_handle
(
src
,
req
->
src_handle
,
dst
,
req
->
access
,
req
->
inherit
,
req
->
options
);
req
->
access
,
req
->
attributes
&
OBJ_INHERIT
,
req
->
options
);
release_object
(
dst
);
}
/* close the handle no matter what happened */
...
...
server/protocol.def
View file @
7b910f40
...
...
@@ -450,8 +450,8 @@ enum apc_type { APC_NONE, APC_USER, APC_TIMER, APC_ASYNC_IO };
obj_handle_t src_handle; /* src handle to duplicate */
obj_handle_t dst_process; /* dst process handle */
unsigned int access; /* wanted access rights */
int inherit; /* inherit flag
*/
int
options; /* duplicate options (see below) */
unsigned int attributes; /* object attributes
*/
unsigned int
options; /* duplicate options (see below) */
@REPLY
obj_handle_t handle; /* duplicated handle in dst process */
int fd; /* associated fd to close */
...
...
server/trace.c
View file @
7b910f40
...
...
@@ -846,8 +846,8 @@ static void dump_dup_handle_request( const struct dup_handle_request *req )
fprintf
(
stderr
,
" src_handle=%p,"
,
req
->
src_handle
);
fprintf
(
stderr
,
" dst_process=%p,"
,
req
->
dst_process
);
fprintf
(
stderr
,
" access=%08x,"
,
req
->
access
);
fprintf
(
stderr
,
"
inherit=%d,"
,
req
->
inherit
);
fprintf
(
stderr
,
" options=%
d
"
,
req
->
options
);
fprintf
(
stderr
,
"
attributes=%08x,"
,
req
->
attributes
);
fprintf
(
stderr
,
" options=%
08x
"
,
req
->
options
);
}
static
void
dump_dup_handle_reply
(
const
struct
dup_handle_reply
*
req
)
...
...
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