mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
wineconsole: Use IOCTL_CONDRV_SET_TITLE ioctl.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
cb28c2dbb0
commit
dc1483c179
1 changed files with 2 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue