Alexandre Julliard : user32: Set the WSF_VISIBLE flag on the main window station.
Alexandre Julliard
julliard at winehq.org
Tue Dec 18 13:08:15 CST 2007
Module: wine
Branch: master
Commit: e94e94261805fe73e0d413c648ab63cfc136327f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e94e94261805fe73e0d413c648ab63cfc136327f
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Dec 18 19:47:31 2007 +0100
user32: Set the WSF_VISIBLE flag on the main window station.
---
dlls/user32/user_main.c | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/dlls/user32/user_main.c b/dlls/user32/user_main.c
index 29ad068..e8aadec 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() ))
{
More information about the wine-cvs
mailing list