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
a33594a0
Commit
a33594a0
authored
Sep 21, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
conhost: Signal console in tty_input if needed.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
da3bd4cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
conhost.c
programs/conhost/conhost.c
+8
-1
No files found.
programs/conhost/conhost.c
View file @
a33594a0
...
...
@@ -473,7 +473,7 @@ static NTSTATUS read_complete( struct console *console, NTSTATUS status, const v
status
=
wine_server_call
(
req
);
}
SERVER_END_REQ
;
if
(
status
)
ERR
(
"failed: %#x
\n
"
,
status
);
if
(
status
&&
(
console
->
read_ioctl
||
status
!=
STATUS_INVALID_HANDLE
)
)
ERR
(
"failed: %#x
\n
"
,
status
);
console
->
read_ioctl
=
0
;
console
->
pending_read
=
0
;
return
status
;
...
...
@@ -1580,6 +1580,7 @@ static DWORD WINAPI tty_input( void *param )
char
read_buf
[
4096
];
WCHAR
buf
[
4096
];
DWORD
count
,
i
;
BOOL
signaled
;
NTSTATUS
status
;
event
=
CreateEventW
(
NULL
,
TRUE
,
FALSE
,
NULL
);
...
...
@@ -1595,6 +1596,7 @@ static DWORD WINAPI tty_input( void *param )
if
(
status
)
break
;
EnterCriticalSection
(
&
console_section
);
signaled
=
console
->
record_count
!=
0
;
/* FIXME: Handle partial char read */
count
=
MultiByteToWideChar
(
CP_UTF8
,
0
,
read_buf
,
io
.
Information
,
buf
,
ARRAY_SIZE
(
buf
));
...
...
@@ -1626,6 +1628,11 @@ static DWORD WINAPI tty_input( void *param )
}
process_console_input
(
console
);
if
(
!
signaled
&&
console
->
record_count
)
{
assert
(
!
console
->
read_ioctl
);
read_complete
(
console
,
STATUS_SUCCESS
,
NULL
,
0
,
TRUE
);
/* signal console */
}
LeaveCriticalSection
(
&
console_section
);
}
...
...
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