From e94e94261805fe73e0d413c648ab63cfc136327f Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 18 Dec 2007 19:47:31 +0100 Subject: [PATCH] user32: Set the WSF_VISIBLE flag on the main window station. --- dlls/user32/user_main.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/dlls/user32/user_main.c b/dlls/user32/user_main.c index 29ad068210c..e8aadecd055 100644 --- a/dlls/user32/user_main.c +++ b/dlls/user32/user_main.c @@ -184,7 +184,19 @@ static void winstation_init(void) if (buffer || !GetProcessWindowStation()) { handle = CreateWindowStationW( winstation ? winstation : WinSta0, 0, WINSTA_ALL_ACCESS, NULL ); - if (handle) SetProcessWindowStation( handle ); + if (handle) + { + SetProcessWindowStation( handle ); + /* only WinSta0 is visible */ + if (!winstation || !strcmpiW( winstation, WinSta0 )) + { + USEROBJECTFLAGS flags; + flags.fInherit = FALSE; + flags.fReserved = FALSE; + flags.dwFlags = WSF_VISIBLE; + SetUserObjectInformationW( handle, UOI_FLAGS, &flags, sizeof(flags) ); + } + } } if (buffer || !GetThreadDesktop( GetCurrentThreadId() )) {