Alexandre Julliard : explorer: Allow the driver to override the desktop winproc at creation time.

Alexandre Julliard julliard at winehq.org
Thu Jun 8 15:54:56 CDT 2017


Module: wine
Branch: master
Commit: e6fdea726a2016ce712d335e2b3d90eb3327dc48
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e6fdea726a2016ce712d335e2b3d90eb3327dc48

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Jun  8 10:08:04 2017 +0200

explorer: Allow the driver to override the desktop winproc at creation time.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 programs/explorer/desktop.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/programs/explorer/desktop.c b/programs/explorer/desktop.c
index 4088dd4..a2d9e1a 100644
--- a/programs/explorer/desktop.c
+++ b/programs/explorer/desktop.c
@@ -978,8 +978,8 @@ void manage_desktop( WCHAR *arg )
         CreateWindowExW( 0, messageW, NULL, WS_POPUP | WS_CLIPSIBLINGS | WS_CLIPCHILDREN,
                          0, 0, 100, 100, 0, 0, 0, NULL );
 
-        using_root = !desktop || !create_desktop( graphics_driver, name, width, height );
         SetWindowLongPtrW( hwnd, GWLP_WNDPROC, (LONG_PTR)desktop_wnd_proc );
+        using_root = !desktop || !create_desktop( graphics_driver, name, width, height );
         SendMessageW( hwnd, WM_SETICON, ICON_BIG, (LPARAM)LoadIconW( 0, MAKEINTRESOURCEW(OIC_WINLOGO)));
         if (name) set_desktop_window_title( hwnd, name );
         SetWindowPos( hwnd, 0, GetSystemMetrics(SM_XVIRTUALSCREEN), GetSystemMetrics(SM_YVIRTUALSCREEN),




More information about the wine-cvs mailing list