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
2fc11e89
Commit
2fc11e89
authored
Jul 20, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 20, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineconsole: Use IOCTL_CONDRV_SET_INPUT_INFO to set console window handle.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
96c5109a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
wineconsole.c
programs/wineconsole/wineconsole.c
+10
-3
No files found.
programs/wineconsole/wineconsole.c
View file @
2fc11e89
...
...
@@ -613,6 +613,7 @@ static struct inner_data* WINECON_Init(HINSTANCE hInst, DWORD pid, LPCWSTR appna
enum
init_return
(
*
backend
)(
struct
inner_data
*
),
INT
nCmdShow
)
{
struct
condrv_input_info_params
input_params
;
OBJECT_ATTRIBUTES
attr
=
{
sizeof
(
attr
)};
struct
inner_data
*
data
=
NULL
;
DWORD
ret
;
...
...
@@ -719,12 +720,18 @@ static struct inner_data* WINECON_Init(HINSTANCE hInst, DWORD pid, LPCWSTR appna
WINECON_SetConfig
(
data
,
&
cfg
);
data
->
curcfg
.
registry
=
cfg
.
registry
;
WINECON_DumpConfig
(
"fint"
,
&
data
->
curcfg
);
memset
(
&
input_params
,
0
,
sizeof
(
input_params
));
input_params
.
mask
=
SET_CONSOLE_INPUT_INFO_WIN
;
input_params
.
info
.
win
=
condrv_handle
(
data
->
hWnd
);
ret
=
DeviceIoControl
(
data
->
hConIn
,
IOCTL_CONDRV_SET_INPUT_INFO
,
&
input_params
,
sizeof
(
input_params
),
NULL
,
0
,
NULL
,
NULL
);
if
(
!
ret
)
goto
error
;
SERVER_START_REQ
(
set_console_input_info
)
{
req
->
handle
=
wine_server_obj_handle
(
data
->
hConIn
);
req
->
win
=
wine_server_user_handle
(
data
->
hWnd
);
req
->
mask
=
SET_CONSOLE_INPUT_INFO_TITLE
|
SET_CONSOLE_INPUT_INFO_WIN
;
req
->
mask
=
SET_CONSOLE_INPUT_INFO_TITLE
;
wine_server_add_data
(
req
,
appname
,
lstrlenW
(
appname
)
*
sizeof
(
WCHAR
)
);
ret
=
!
wine_server_call_err
(
req
);
}
...
...
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