msvcr110: Fix __crtGetShowWindowMode implementation.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46928
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2019-04-01 17:46:07 +02:00 committed by Alexandre Julliard
parent 7cf3edcdc8
commit b353ad7db8
1 changed files with 3 additions and 2 deletions

View File

@ -26,6 +26,7 @@
#include "msvcrt.h"
#include "wine/debug.h"
#include "ntsecapi.h"
#include "windows.h"
WINE_DEFAULT_DEBUG_CHANNEL(msvcrt);
@ -517,8 +518,8 @@ int CDECL MSVCR110__crtGetShowWindowMode(void)
STARTUPINFOW si;
GetStartupInfoW(&si);
TRACE("window=%d\n", si.wShowWindow);
return si.wShowWindow;
TRACE("flags=%x window=%d\n", si.dwFlags, si.wShowWindow);
return si.dwFlags & STARTF_USESHOWWINDOW ? si.wShowWindow : SW_SHOWDEFAULT;
}
/*********************************************************************