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
c9e1b789
Commit
c9e1b789
authored
Oct 01, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
conhost: Clear out_size in IOCTL_CONDRV_READ_CONSOLE implementation.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
45b8489b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
conhost.c
programs/conhost/conhost.c
+5
-2
No files found.
programs/conhost/conhost.c
View file @
c9e1b789
...
...
@@ -2425,6 +2425,8 @@ static NTSTATUS screen_buffer_ioctl( struct screen_buffer *screen_buffer, unsign
static
NTSTATUS
console_input_ioctl
(
struct
console
*
console
,
unsigned
int
code
,
const
void
*
in_data
,
size_t
in_size
,
size_t
*
out_size
)
{
NTSTATUS
status
;
switch
(
code
)
{
case
IOCTL_CONDRV_GET_MODE
:
...
...
@@ -2446,12 +2448,13 @@ static NTSTATUS console_input_ioctl( struct console *console, unsigned int code,
case
IOCTL_CONDRV_READ_CONSOLE
:
if
(
in_size
||
*
out_size
%
sizeof
(
WCHAR
))
return
STATUS_INVALID_PARAMETER
;
ensure_tty_input_thread
(
console
);
return
read_console
(
console
,
*
out_size
);
status
=
read_console
(
console
,
*
out_size
);
*
out_size
=
0
;
return
status
;
case
IOCTL_CONDRV_READ_INPUT
:
{
unsigned
int
blocking
;
NTSTATUS
status
;
if
(
in_size
&&
in_size
!=
sizeof
(
blocking
))
return
STATUS_INVALID_PARAMETER
;
ensure_tty_input_thread
(
console
);
blocking
=
in_size
&&
*
(
unsigned
int
*
)
in_data
;
...
...
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