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
ffa52880
Commit
ffa52880
authored
Jul 15, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 15, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineconsole: Use IOCTL_CONDRV_GET_TITLE in WINECON_GetConsoleTitle.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
037b9162
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
14 deletions
+5
-14
wineconsole.c
programs/wineconsole/wineconsole.c
+5
-14
No files found.
programs/wineconsole/wineconsole.c
View file @
ffa52880
...
...
@@ -173,22 +173,13 @@ static void WINECON_SetInsertMode(HANDLE hConIn, unsigned int enable)
*/
BOOL
WINECON_GetConsoleTitle
(
HANDLE
hConIn
,
WCHAR
*
buffer
,
size_t
len
)
{
BOOL
ret
;
DWORD
size
;
if
(
len
<
sizeof
(
WCHAR
))
return
FALSE
;
if
(
!
DeviceIoControl
(
hConIn
,
IOCTL_CONDRV_GET_TITLE
,
NULL
,
0
,
buffer
,
len
-
sizeof
(
WCHAR
),
&
size
,
NULL
))
return
FALSE
;
SERVER_START_REQ
(
get_console_input_info
)
{
req
->
handle
=
wine_server_obj_handle
(
hConIn
);
wine_server_set_reply
(
req
,
buffer
,
len
-
sizeof
(
WCHAR
)
);
if
((
ret
=
!
wine_server_call_err
(
req
)))
{
len
=
wine_server_reply_size
(
reply
);
buffer
[
len
/
sizeof
(
WCHAR
)]
=
0
;
}
}
SERVER_END_REQ
;
return
ret
;
buffer
[
size
/
sizeof
(
WCHAR
)]
=
0
;
return
TRUE
;
}
/******************************************************************
...
...
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