Jacek Caban : conhost: Set console window title.

Alexandre Julliard julliard at winehq.org
Mon Oct 12 15:20:51 CDT 2020


Module: wine
Branch: master
Commit: 12cc863a4a5e31a01bf4f683d94a7e155feb23ea
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=12cc863a4a5e31a01bf4f683d94a7e155feb23ea

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Mon Oct 12 18:26:56 2020 +0200

conhost: Set console window title.

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 programs/conhost/conhost.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/programs/conhost/conhost.c b/programs/conhost/conhost.c
index c917b08dc0..3ed21f5fa7 100644
--- a/programs/conhost/conhost.c
+++ b/programs/conhost/conhost.c
@@ -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 );
     }
 




More information about the wine-cvs mailing list