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
293d7ab6
Commit
293d7ab6
authored
Jul 28, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user: Abort WaitForUserIdle if the target process died.
parent
72bfe131
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
message.c
dlls/user/message.c
+9
-6
No files found.
dlls/user/message.c
View file @
293d7ab6
...
...
@@ -3179,27 +3179,30 @@ DWORD WINAPI MsgWaitForMultipleObjects( DWORD count, CONST HANDLE *handles,
DWORD
WINAPI
WaitForInputIdle
(
HANDLE
hProcess
,
DWORD
dwTimeOut
)
{
DWORD
start_time
,
elapsed
,
ret
;
HANDLE
idle_event
=
(
HANDLE
)
-
1
;
HANDLE
handles
[
2
]
;
handles
[
0
]
=
hProcess
;
SERVER_START_REQ
(
get_process_idle_event
)
{
req
->
handle
=
hProcess
;
if
(
!
(
ret
=
wine_server_call_err
(
req
)))
idle_event
=
reply
->
event
;
if
(
!
(
ret
=
wine_server_call_err
(
req
)))
handles
[
1
]
=
reply
->
event
;
}
SERVER_END_REQ
;
if
(
ret
)
return
WAIT_FAILED
;
/* error */
if
(
!
idle_event
)
return
0
;
/* no event to wait on */
if
(
!
handles
[
1
]
)
return
0
;
/* no event to wait on */
start_time
=
GetTickCount
();
elapsed
=
0
;
TRACE
(
"waiting for %p
\n
"
,
idle_event
);
TRACE
(
"waiting for %p
\n
"
,
handles
[
1
]
);
do
{
ret
=
MsgWaitForMultipleObjects
(
1
,
&
idle_event
,
FALSE
,
dwTimeOut
-
elapsed
,
QS_SENDMESSAGE
);
ret
=
MsgWaitForMultipleObjects
(
2
,
handles
,
FALSE
,
dwTimeOut
-
elapsed
,
QS_SENDMESSAGE
);
switch
(
ret
)
{
case
WAIT_OBJECT_0
+
1
:
case
WAIT_OBJECT_0
:
return
WAIT_FAILED
;
case
WAIT_OBJECT_0
+
2
:
process_sent_messages
();
break
;
case
WAIT_TIMEOUT
:
...
...
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