conhost: Respect the StartupInfo's wShowWindow.

Since 859b526c81, console windows are always
shown even if they're supposed to start in some other state, e.g. minimized.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Gabriel Ivăncescu 2020-12-01 15:49:53 +02:00 committed by Alexandre Julliard
parent fe719e16a4
commit 7b2b4e0329
1 changed files with 1 additions and 1 deletions

View File

@ -2756,7 +2756,7 @@ int __cdecl wmain(int argc, WCHAR *argv[])
if (!init_window( &console )) return 1;
GetStartupInfoW( &si );
set_console_title( &console, si.lpTitle, wcslen( si.lpTitle ) * sizeof(WCHAR) );
ShowWindow( console.win, SW_SHOW );
ShowWindow( console.win, (si.dwFlags & STARTF_USESHOWWINDOW) ? si.wShowWindow : SW_SHOW );
}
return main_loop( &console, signal );