[PATCH] conhost: Respect the StartupInfo's wShowWindow.
Gabriel Ivăncescu
gabrielopcode at gmail.com
Mon Nov 30 10:34:05 CST 2020
On 30/11/2020 18:19, Dmitry Timoshkov wrote:
> Gabriel Ivăncescu <gabrielopcode at gmail.com> wrote:
>
>> - ShowWindow( console.win, SW_SHOW );
>> + ShowWindow( console.win, (si.dwFlags & STARTF_USESHOWWINDOW) && si.wShowWindow != SW_SHOWDEFAULT
>> + ? si.wShowWindow : SW_SHOW );
>
> What's the reason to treat SW_SHOWDEFAULT specially?
>
I initially tried just setting it to SW_SHOWDEFAULT without any checks,
and it didn't work. I was assuming the SW_SHOW was there for a reason in
such case, as the "default". I'm not that familiar with how this works,
so of course I can remove it if it's actually unnecessary.
More information about the wine-devel
mailing list