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
c47f64bd
Commit
c47f64bd
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: Use IOCTL_CONDRV_SETUP_INPUT to initialize input in Unix mode.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
52f6a56a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
conhost.c
programs/conhost/conhost.c
+15
-0
No files found.
programs/conhost/conhost.c
View file @
c47f64bd
...
...
@@ -1625,6 +1625,14 @@ static DWORD WINAPI tty_input( void *param )
BOOL
signaled
;
NTSTATUS
status
;
if
(
console
->
is_unix
)
{
unsigned
int
h
=
condrv_handle
(
console
->
tty_input
);
status
=
NtDeviceIoControlFile
(
console
->
server
,
NULL
,
NULL
,
NULL
,
&
io
,
IOCTL_CONDRV_SETUP_INPUT
,
&
h
,
sizeof
(
h
),
NULL
,
0
);
if
(
status
)
ERR
(
"input setup failed: %#x
\n
"
,
status
);
}
event
=
CreateEventW
(
NULL
,
TRUE
,
FALSE
,
NULL
);
for
(;;)
...
...
@@ -1682,6 +1690,13 @@ static DWORD WINAPI tty_input( void *param )
EnterCriticalSection
(
&
console_section
);
if
(
console
->
read_ioctl
)
read_complete
(
console
,
status
,
NULL
,
0
,
FALSE
);
if
(
console
->
is_unix
)
{
unsigned
int
h
=
0
;
status
=
NtDeviceIoControlFile
(
console
->
server
,
NULL
,
NULL
,
NULL
,
&
io
,
IOCTL_CONDRV_SETUP_INPUT
,
&
h
,
sizeof
(
h
),
NULL
,
0
);
if
(
status
)
ERR
(
"input restore failed: %#x
\n
"
,
status
);
}
CloseHandle
(
console
->
input_thread
);
console
->
input_thread
=
NULL
;
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