Skip to content
Snippets Groups Projects
Commit 12cc863a authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard
Browse files

conhost: Set console window title.

parent b2487c17
No related branches found
No related tags found
No related merge requests found
......@@ -2292,6 +2292,8 @@ static NTSTATUS set_console_title( struct console *console, const WCHAR *in_titl
tty_write( console, "\x07", 1 );
tty_sync( console );
}
if (console->win)
SetWindowTextW( console->win, console->title );
return STATUS_SUCCESS;
}
......@@ -2755,7 +2757,10 @@ int __cdecl wmain(int argc, WCHAR *argv[])
}
else
{
STARTUPINFOW si;
if (!init_window( &console )) return 1;
GetStartupInfoW( &si );
set_console_title( &console, si.lpTitle, wcslen( si.lpTitle ) * sizeof(WCHAR) );
ShowWindow( console.win, SW_SHOW );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment