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
16d70584
Commit
16d70584
authored
Apr 08, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Don't close handles in APC requests sent to self.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=50904
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
277a5728
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
server.c
dlls/ntdll/unix/server.c
+5
-5
No files found.
dlls/ntdll/unix/server.c
View file @
16d70584
...
...
@@ -372,7 +372,7 @@ static void invoke_apc( CONTEXT *context, const user_apc_t *apc )
* Invoke a single APC.
*
*/
static
void
invoke_system_apc
(
const
apc_call_t
*
call
,
apc_result_t
*
result
)
static
void
invoke_system_apc
(
const
apc_call_t
*
call
,
apc_result_t
*
result
,
BOOL
self
)
{
SIZE_T
size
,
bits
;
void
*
addr
;
...
...
@@ -531,7 +531,7 @@ static void invoke_system_apc( const apc_call_t *call, apc_result_t *result )
result
->
map_view
.
size
=
size
;
}
else
result
->
map_view
.
status
=
STATUS_INVALID_PARAMETER
;
NtClose
(
wine_server_ptr_handle
(
call
->
map_view
.
handle
)
);
if
(
!
self
)
NtClose
(
wine_server_ptr_handle
(
call
->
map_view
.
handle
)
);
break
;
case
APC_UNMAP_VIEW
:
result
->
type
=
call
->
type
;
...
...
@@ -590,7 +590,7 @@ static void invoke_system_apc( const apc_call_t *call, apc_result_t *result )
&
dst_handle
,
call
->
dup_handle
.
access
,
call
->
dup_handle
.
attributes
,
call
->
dup_handle
.
options
);
result
->
dup_handle
.
handle
=
wine_server_obj_handle
(
dst_handle
);
NtClose
(
wine_server_ptr_handle
(
call
->
dup_handle
.
dst_process
)
);
if
(
!
self
)
NtClose
(
wine_server_ptr_handle
(
call
->
dup_handle
.
dst_process
)
);
break
;
}
case
APC_BREAK_PROCESS
:
...
...
@@ -674,7 +674,7 @@ unsigned int server_select( const select_op_t *select_op, data_size_t size, UINT
SERVER_END_REQ
;
if
(
ret
!=
STATUS_KERNEL_APC
)
break
;
invoke_system_apc
(
&
call
,
&
result
);
invoke_system_apc
(
&
call
,
&
result
,
FALSE
);
/* don't signal multiple times */
if
(
size
>=
sizeof
(
select_op
->
signal_and_wait
)
&&
select_op
->
op
==
SELECT_SIGNAL_AND_WAIT
)
...
...
@@ -772,7 +772,7 @@ unsigned int server_queue_process_apc( HANDLE process, const apc_call_t *call, a
if
(
self
)
{
invoke_system_apc
(
call
,
result
);
invoke_system_apc
(
call
,
result
,
TRUE
);
}
else
{
...
...
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