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
23cdc7e5
Commit
23cdc7e5
authored
Oct 29, 2015
by
Sebastian Lackner
Committed by
Alexandre Julliard
Oct 29, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Unconditionally close APC handle in get_apc_result call.
Signed-off-by:
Sebastian Lackner
<
sebastian@fds-team.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
51d17bfd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
server.c
dlls/ntdll/server.c
+0
-1
thread.c
server/thread.c
+6
-7
No files found.
dlls/ntdll/server.c
View file @
23cdc7e5
...
...
@@ -677,7 +677,6 @@ unsigned int server_queue_process_apc( HANDLE process, const apc_call_t *call, a
SERVER_END_REQ
;
if
(
!
ret
&&
result
->
type
==
APC_NONE
)
continue
;
/* APC didn't run, try again */
if
(
ret
)
NtClose
(
handle
);
}
return
ret
;
}
...
...
server/thread.c
View file @
23cdc7e5
...
...
@@ -1602,13 +1602,12 @@ DECL_HANDLER(get_apc_result)
if
(
!
(
apc
=
(
struct
thread_apc
*
)
get_handle_obj
(
current
->
process
,
req
->
handle
,
0
,
&
thread_apc_ops
)))
return
;
if
(
!
apc
->
executed
)
set_error
(
STATUS_PENDING
);
else
{
reply
->
result
=
apc
->
result
;
/* close the handle directly to avoid an extra round-trip */
close_handle
(
current
->
process
,
req
->
handle
);
}
if
(
apc
->
executed
)
reply
->
result
=
apc
->
result
;
else
set_error
(
STATUS_PENDING
);
/* close the handle directly to avoid an extra round-trip */
close_handle
(
current
->
process
,
req
->
handle
);
release_object
(
apc
);
}
...
...
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