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
d2496e2d
Commit
d2496e2d
authored
Aug 24, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
conhost: Implement IOCTL_CONDRV_SET_TITLE.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e40de801
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
console.c
dlls/kernel32/tests/console.c
+2
-0
conhost.c
programs/conhost/conhost.c
+21
-0
No files found.
dlls/kernel32/tests/console.c
View file @
d2496e2d
...
...
@@ -3966,6 +3966,8 @@ static void test_pseudo_console_child(HANDLE input)
ret
=
SetConsoleMode
(
input
,
mode
|
ENABLE_AUTO_POSITION
);
ok
(
ret
,
"SetConsoleMode failed: %u
\n
"
,
GetLastError
());
test_console_title
();
}
static
DWORD
WINAPI
read_pipe_proc
(
void
*
handle
)
...
...
programs/conhost/conhost.c
View file @
d2496e2d
...
...
@@ -73,6 +73,23 @@ static void *alloc_ioctl_buffer( size_t size )
return
ioctl_buffer
;
}
static
NTSTATUS
set_console_title
(
struct
console
*
console
,
const
WCHAR
*
in_title
,
size_t
size
)
{
WCHAR
*
title
=
NULL
;
TRACE
(
"%s
\n
"
,
debugstr_wn
(
in_title
,
size
)
);
if
(
size
)
{
if
(
!
(
title
=
malloc
(
size
)))
return
STATUS_NO_MEMORY
;
memcpy
(
title
,
in_title
,
size
);
}
free
(
console
->
title
);
console
->
title
=
title
;
console
->
title_len
=
size
;
return
STATUS_SUCCESS
;
}
static
NTSTATUS
console_input_ioctl
(
struct
console
*
console
,
unsigned
int
code
,
const
void
*
in_data
,
size_t
in_size
,
size_t
*
out_size
)
{
...
...
@@ -180,6 +197,10 @@ static NTSTATUS console_input_ioctl( struct console *console, unsigned int code,
return
STATUS_SUCCESS
;
}
case
IOCTL_CONDRV_SET_TITLE
:
if
(
in_size
%
sizeof
(
WCHAR
)
||
*
out_size
)
return
STATUS_INVALID_PARAMETER
;
return
set_console_title
(
console
,
in_data
,
in_size
);
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