Commit 7b2b4e03 authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard

conhost: Respect the StartupInfo's wShowWindow.

Since 859b526c, console windows are always shown even if they're supposed to start in some other state, e.g. minimized. Signed-off-by: 's avatarGabriel Ivăncescu <gabrielopcode@gmail.com> Signed-off-by: 's avatarJacek Caban <jacek@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent fe719e16
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment