Jacek Caban : wineconsole: Use IOCTL_CONDRV_SET_TITLE ioctl.
Alexandre Julliard
julliard at winehq.org
Tue Jul 21 15:40:21 CDT 2020
Module: wine
Branch: master
Commit: dc1483c179d8e6e8ac1efe1fb54d8f1f2395077d
URL: https://source.winehq.org/git/wine.git/?a=commit;h=dc1483c179d8e6e8ac1efe1fb54d8f1f2395077d
Author: Jacek Caban <jacek at codeweavers.com>
Date: Tue Jul 21 14:56:48 2020 +0200
wineconsole: Use IOCTL_CONDRV_SET_TITLE ioctl.
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
programs/wineconsole/wineconsole.c | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/programs/wineconsole/wineconsole.c b/programs/wineconsole/wineconsole.c
index eaf67f8875..be6ddf2000 100644
--- a/programs/wineconsole/wineconsole.c
+++ b/programs/wineconsole/wineconsole.c
@@ -728,14 +728,8 @@ static struct inner_data* WINECON_Init(HINSTANCE hInst, DWORD pid, LPCWSTR appna
NULL, 0, NULL, NULL);
if (!ret) goto error;
- SERVER_START_REQ( set_console_input_info )
- {
- req->handle = wine_server_obj_handle( data->hConIn );
- req->mask = SET_CONSOLE_INPUT_INFO_TITLE;
- wine_server_add_data( req, appname, lstrlenW(appname) * sizeof(WCHAR) );
- ret = !wine_server_call_err( req );
- }
- SERVER_END_REQ;
+ ret = DeviceIoControl(data->hConIn, IOCTL_CONDRV_SET_TITLE, (void *)appname,
+ lstrlenW(appname) * sizeof(WCHAR), NULL, 0, NULL, NULL);
if (!ret) goto error;
return data;
More information about the wine-cvs
mailing list