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
e40de801
Commit
e40de801
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_GET_TITLE.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6c7f389c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
conhost.c
programs/conhost/conhost.c
+14
-0
No files found.
programs/conhost/conhost.c
View file @
e40de801
...
@@ -46,6 +46,8 @@ struct console
...
@@ -46,6 +46,8 @@ struct console
HANDLE
server
;
/* console server handle */
HANDLE
server
;
/* console server handle */
unsigned
int
mode
;
/* input mode */
unsigned
int
mode
;
/* input mode */
unsigned
int
recnum
;
/* number of input records */
unsigned
int
recnum
;
/* number of input records */
WCHAR
*
title
;
/* console title */
size_t
title_len
;
/* length of console title */
struct
history_line
**
history
;
/* lines history */
struct
history_line
**
history
;
/* lines history */
unsigned
int
history_size
;
/* number of entries in history array */
unsigned
int
history_size
;
/* number of entries in history array */
unsigned
int
history_index
;
/* number of used entries in history array */
unsigned
int
history_index
;
/* number of used entries in history array */
...
@@ -166,6 +168,18 @@ static NTSTATUS console_input_ioctl( struct console *console, unsigned int code,
...
@@ -166,6 +168,18 @@ static NTSTATUS console_input_ioctl( struct console *console, unsigned int code,
return
STATUS_SUCCESS
;
return
STATUS_SUCCESS
;
}
}
case
IOCTL_CONDRV_GET_TITLE
:
{
WCHAR
*
result
;
if
(
in_size
)
return
STATUS_INVALID_PARAMETER
;
TRACE
(
"returning title %s
\n
"
,
debugstr_wn
(
console
->
title
,
console
->
title_len
/
sizeof
(
WCHAR
))
);
if
(
!
(
result
=
alloc_ioctl_buffer
(
*
out_size
=
min
(
*
out_size
,
console
->
title_len
))))
return
STATUS_NO_MEMORY
;
if
(
*
out_size
)
memcpy
(
result
,
console
->
title
,
*
out_size
);
return
STATUS_SUCCESS
;
}
default:
default:
FIXME
(
"unsupported ioctl %x
\n
"
,
code
);
FIXME
(
"unsupported ioctl %x
\n
"
,
code
);
return
STATUS_NOT_SUPPORTED
;
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