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
b660aaa9
Commit
b660aaa9
authored
Dec 26, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Use the same field for process and thread handle in the queue_apc request.
parent
a7b3efde
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
14 deletions
+11
-14
sync.c
dlls/ntdll/sync.c
+1
-1
thread.c
dlls/ntdll/thread.c
+1
-1
server_protocol.h
include/wine/server_protocol.h
+2
-3
protocol.def
server/protocol.def
+1
-2
thread.c
server/thread.c
+5
-5
trace.c
server/trace.c
+1
-2
No files found.
dlls/ntdll/sync.c
View file @
b660aaa9
...
...
@@ -1032,7 +1032,7 @@ NTSTATUS NTDLL_queue_process_apc( HANDLE process, const apc_call_t *call, apc_re
SERVER_START_REQ
(
queue_apc
)
{
req
->
process
=
wine_server_obj_handle
(
process
);
req
->
handle
=
wine_server_obj_handle
(
process
);
req
->
call
=
*
call
;
if
(
!
(
ret
=
wine_server_call
(
req
)))
{
...
...
dlls/ntdll/thread.c
View file @
b660aaa9
...
...
@@ -747,7 +747,7 @@ NTSTATUS WINAPI NtQueueApcThread( HANDLE handle, PNTAPCFUNC func, ULONG_PTR arg1
NTSTATUS
ret
;
SERVER_START_REQ
(
queue_apc
)
{
req
->
thread
=
wine_server_obj_handle
(
handle
);
req
->
handle
=
wine_server_obj_handle
(
handle
);
if
(
func
)
{
req
->
call
.
type
=
APC_USER
;
...
...
include/wine/server_protocol.h
View file @
b660aaa9
...
...
@@ -749,8 +749,7 @@ struct unload_dll_reply
struct
queue_apc_request
{
struct
request_header
__header
;
obj_handle_t
thread
;
obj_handle_t
process
;
obj_handle_t
handle
;
apc_call_t
call
;
};
struct
queue_apc_reply
...
...
@@ -5051,6 +5050,6 @@ union generic_reply
struct
set_window_layered_info_reply
set_window_layered_info_reply
;
};
#define SERVER_PROTOCOL_VERSION 35
4
#define SERVER_PROTOCOL_VERSION 35
5
#endif
/* __WINE_WINE_SERVER_PROTOCOL_H */
server/protocol.def
View file @
b660aaa9
...
...
@@ -673,8 +673,7 @@ typedef union
/* Queue an APC for a thread or process */
@REQ(queue_apc)
obj_handle_t thread; /* thread handle */
obj_handle_t process; /* process handle */
obj_handle_t handle; /* thread or process handle */
apc_call_t call; /* call arguments */
@REPLY
obj_handle_t handle; /* APC handle */
...
...
server/thread.c
View file @
b660aaa9
...
...
@@ -1242,7 +1242,7 @@ DECL_HANDLER(queue_apc)
{
case
APC_NONE
:
case
APC_USER
:
thread
=
get_thread_from_handle
(
req
->
thread
,
THREAD_SET_CONTEXT
);
thread
=
get_thread_from_handle
(
req
->
handle
,
THREAD_SET_CONTEXT
);
break
;
case
APC_VIRTUAL_ALLOC
:
case
APC_VIRTUAL_FREE
:
...
...
@@ -1251,13 +1251,13 @@ DECL_HANDLER(queue_apc)
case
APC_VIRTUAL_LOCK
:
case
APC_VIRTUAL_UNLOCK
:
case
APC_UNMAP_VIEW
:
process
=
get_process_from_handle
(
req
->
process
,
PROCESS_VM_OPERATION
);
process
=
get_process_from_handle
(
req
->
handle
,
PROCESS_VM_OPERATION
);
break
;
case
APC_VIRTUAL_QUERY
:
process
=
get_process_from_handle
(
req
->
process
,
PROCESS_QUERY_INFORMATION
);
process
=
get_process_from_handle
(
req
->
handle
,
PROCESS_QUERY_INFORMATION
);
break
;
case
APC_MAP_VIEW
:
process
=
get_process_from_handle
(
req
->
process
,
PROCESS_VM_OPERATION
);
process
=
get_process_from_handle
(
req
->
handle
,
PROCESS_VM_OPERATION
);
if
(
process
&&
process
!=
current
->
process
)
{
/* duplicate the handle into the target process */
...
...
@@ -1272,7 +1272,7 @@ DECL_HANDLER(queue_apc)
}
break
;
case
APC_CREATE_THREAD
:
process
=
get_process_from_handle
(
req
->
process
,
PROCESS_CREATE_THREAD
);
process
=
get_process_from_handle
(
req
->
handle
,
PROCESS_CREATE_THREAD
);
break
;
default
:
set_error
(
STATUS_INVALID_PARAMETER
);
...
...
server/trace.c
View file @
b660aaa9
...
...
@@ -1077,8 +1077,7 @@ static void dump_unload_dll_request( const struct unload_dll_request *req )
static
void
dump_queue_apc_request
(
const
struct
queue_apc_request
*
req
)
{
fprintf
(
stderr
,
" thread=%04x,"
,
req
->
thread
);
fprintf
(
stderr
,
" process=%04x,"
,
req
->
process
);
fprintf
(
stderr
,
" handle=%04x,"
,
req
->
handle
);
fprintf
(
stderr
,
" call="
);
dump_apc_call
(
&
req
->
call
);
}
...
...
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