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
21c99970
Commit
21c99970
authored
Aug 27, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
conhost: Implement IOCTL_CONDRV_SET_MODE.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e5bd1ba4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
console.c
dlls/kernel32/tests/console.c
+10
-0
conhost.c
programs/conhost/conhost.c
+6
-0
No files found.
dlls/kernel32/tests/console.c
View file @
21c99970
...
...
@@ -3971,6 +3971,16 @@ static void test_pseudo_console_child(HANDLE input, HANDLE output)
ok
(
ret
,
"GetConsoleMode failed: %u
\n
"
,
GetLastError
());
ok
(
mode
==
(
ENABLE_PROCESSED_OUTPUT
|
ENABLE_WRAP_AT_EOL_OUTPUT
),
"mode = %x
\n
"
,
mode
);
ret
=
SetConsoleMode
(
output
,
mode
&
~
ENABLE_WRAP_AT_EOL_OUTPUT
);
ok
(
ret
,
"SetConsoleMode failed: %u
\n
"
,
GetLastError
());
ret
=
GetConsoleMode
(
output
,
&
mode
);
ok
(
ret
,
"GetConsoleMode failed: %u
\n
"
,
GetLastError
());
ok
(
mode
==
ENABLE_PROCESSED_OUTPUT
,
"mode = %x
\n
"
,
mode
);
ret
=
SetConsoleMode
(
output
,
mode
|
ENABLE_WRAP_AT_EOL_OUTPUT
);
ok
(
ret
,
"SetConsoleMode failed: %u
\n
"
,
GetLastError
());
test_console_title
();
test_WriteConsoleInputW
(
input
);
}
...
...
programs/conhost/conhost.c
View file @
21c99970
...
...
@@ -244,6 +244,12 @@ static NTSTATUS screen_buffer_ioctl( struct screen_buffer *screen_buffer, unsign
return
STATUS_SUCCESS
;
}
case
IOCTL_CONDRV_SET_MODE
:
if
(
in_size
!=
sizeof
(
unsigned
int
)
||
*
out_size
)
return
STATUS_INVALID_PARAMETER
;
screen_buffer
->
mode
=
*
(
unsigned
int
*
)
in_data
;
TRACE
(
"set %x mode
\n
"
,
screen_buffer
->
mode
);
return
STATUS_SUCCESS
;
default:
FIXME
(
"unsupported ioctl %x
\n
"
,
code
);
return
STATUS_NOT_SUPPORTED
;
...
...
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