Commit e94e9426 authored by Alexandre Julliard's avatar Alexandre Julliard

user32: Set the WSF_VISIBLE flag on the main window station.

parent 6f5131e4
...@@ -184,7 +184,19 @@ static void winstation_init(void) ...@@ -184,7 +184,19 @@ static void winstation_init(void)
if (buffer || !GetProcessWindowStation()) if (buffer || !GetProcessWindowStation())
{ {
handle = CreateWindowStationW( winstation ? winstation : WinSta0, 0, WINSTA_ALL_ACCESS, NULL ); 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() )) if (buffer || !GetThreadDesktop( GetCurrentThreadId() ))
{ {
......
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