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
e3247ecc
Commit
e3247ecc
authored
Jan 10, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Only return STATUS_USER_APC from a wait if a real user APC has been run.
Based on a patch by Thomas Kho.
parent
30a2645e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
sync.c
dlls/ntdll/sync.c
+7
-5
No files found.
dlls/ntdll/sync.c
View file @
e3247ecc
...
...
@@ -655,10 +655,11 @@ static int wait_reply( void *cookie )
/***********************************************************************
* call_apcs
*
* Call outstanding APCs.
* Call outstanding APCs.
Return TRUE if a user APC has been run.
*/
static
void
call_apcs
(
BOOL
alertable
)
static
BOOL
call_apcs
(
BOOL
alertable
)
{
BOOL
user_apc
=
FALSE
;
NTSTATUS
ret
;
apc_call_t
call
;
HANDLE
handle
=
0
;
...
...
@@ -677,12 +678,13 @@ static void call_apcs( BOOL alertable )
}
SERVER_END_REQ
;
if
(
ret
)
return
;
/* no more APCs */
if
(
ret
)
return
user_apc
;
/* no more APCs */
switch
(
call
.
type
)
{
case
APC_USER
:
call
.
user
.
func
(
call
.
user
.
args
[
0
],
call
.
user
.
args
[
1
],
call
.
user
.
args
[
2
]
);
user_apc
=
TRUE
;
break
;
case
APC_TIMER
:
{
...
...
@@ -691,6 +693,7 @@ static void call_apcs( BOOL alertable )
RtlSecondsSince1970ToTime
(
call
.
timer
.
time
.
sec
,
&
time
);
time
.
QuadPart
+=
call
.
timer
.
time
.
usec
*
10
;
call
.
timer
.
func
(
call
.
timer
.
arg
,
time
.
u
.
LowPart
,
time
.
u
.
HighPart
);
user_apc
=
TRUE
;
break
;
}
case
APC_ASYNC_IO
:
...
...
@@ -733,8 +736,7 @@ NTSTATUS NTDLL_wait_for_multiple_objects( UINT count, const HANDLE *handles, UIN
SERVER_END_REQ
;
if
(
ret
==
STATUS_PENDING
)
ret
=
wait_reply
(
&
cookie
);
if
(
ret
!=
STATUS_USER_APC
)
break
;
call_apcs
(
(
flags
&
SELECT_ALERTABLE
)
!=
0
);
if
(
flags
&
SELECT_ALERTABLE
)
break
;
if
(
call_apcs
(
(
flags
&
SELECT_ALERTABLE
)
!=
0
))
break
;
signal_object
=
0
;
/* don't signal it multiple times */
}
...
...
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