Gabriel Ivăncescu : conhost: Respect the StartupInfo's wShowWindow.

Alexandre Julliard julliard at winehq.org
Wed Dec 2 15:21:07 CST 2020


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

Author: Gabriel Ivăncescu <gabrielopcode at gmail.com>
Date:   Tue Dec  1 15:49:53 2020 +0200

conhost: Respect the StartupInfo's wShowWindow.

Since 859b526c81a2af841b5b7b28d06f3d782bccdab5, 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 at gmail.com>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 programs/conhost/conhost.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/programs/conhost/conhost.c b/programs/conhost/conhost.c
index e3a9a25eac3..f864bbb5a1c 100644
--- a/programs/conhost/conhost.c
+++ b/programs/conhost/conhost.c
@@ -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 );




More information about the wine-cvs mailing list