Commit b353ad7d authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcr110: Fix __crtGetShowWindowMode implementation.

parent 7cf3edcd
......@@ -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;
}
/*********************************************************************
......
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