[PATCH] user32: Return desktop as shell window if shell is not set.
Ilya Konovalov
aragaer at gmail.com
Sat Jun 10 12:22:32 CDT 2017
This should fix https://bugs.winehq.org/show_bug.cgi?id=38196
---
dlls/user32/focus.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/dlls/user32/focus.c b/dlls/user32/focus.c
index f1c8831..6a9d4a9 100644
--- a/dlls/user32/focus.c
+++ b/dlls/user32/focus.c
@@ -443,6 +443,13 @@ HWND WINAPI GetShellWindow(void)
hwndShell = wine_server_ptr_handle( reply->old_shell_window );
}
SERVER_END_REQ;
+ if (!hwndShell)
+ SERVER_START_REQ(get_desktop_window)
+ {
+ if (!wine_server_call_err(req))
+ hwndShell = wine_server_ptr_handle( reply->top_window );
+ }
+ SERVER_END_REQ;
return hwndShell;
}
--
2.9.3
More information about the wine-patches
mailing list