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
3d51714c
Commit
3d51714c
authored
Oct 08, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 08, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
conhost: Pump window messages when we have a window.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
bbd41968
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
conhost.c
programs/conhost/conhost.c
+17
-1
No files found.
programs/conhost/conhost.c
View file @
3d51714c
...
...
@@ -2596,6 +2596,7 @@ static int main_loop( struct console *console, HANDLE signal )
unsigned
short
signal_id
;
IO_STATUS_BLOCK
signal_io
;
NTSTATUS
status
;
BOOL
pump_msgs
;
DWORD
res
;
if
(
signal
)
...
...
@@ -2611,10 +2612,25 @@ static int main_loop( struct console *console, HANDLE signal )
wait_handles
[
wait_cnt
++
]
=
console
->
server
;
if
(
signal
)
wait_handles
[
wait_cnt
++
]
=
signal_event
;
if
(
console
->
input_thread
)
wait_handles
[
wait_cnt
++
]
=
console
->
input_thread
;
pump_msgs
=
console
->
win
!=
NULL
;
for
(;;)
{
res
=
WaitForMultipleObjects
(
wait_cnt
,
wait_handles
,
FALSE
,
INFINITE
);
if
(
pump_msgs
)
res
=
MsgWaitForMultipleObjects
(
wait_cnt
,
wait_handles
,
FALSE
,
INFINITE
,
QS_ALLEVENTS
);
else
res
=
WaitForMultipleObjects
(
wait_cnt
,
wait_handles
,
FALSE
,
INFINITE
);
if
(
res
==
WAIT_OBJECT_0
+
wait_cnt
)
{
MSG
msg
;
while
(
PeekMessageW
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
))
{
if
(
msg
.
message
==
WM_QUIT
)
return
0
;
DispatchMessageW
(
&
msg
);
}
continue
;
}
switch
(
res
)
{
...
...
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