[1/2] explorer: Do not set the caption for "Shell_TrayWnd", some applications depend on it being empty.

Dmitry Timoshkov dmitry at codeweavers.com
Tue Oct 5 09:03:03 CDT 2010


The bug #20129 lists one of such applications.

It does FindWindow("Shell_TrayWnd", "") and expects that it returns a valid
tray window handle. Currently FindWindow() is broken, but my next patch makes
the above call succeed.
---
 programs/explorer/systray.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/programs/explorer/systray.c b/programs/explorer/systray.c
index 615768f..365fa72 100644
--- a/programs/explorer/systray.c
+++ b/programs/explorer/systray.c
@@ -562,7 +562,6 @@ void initialize_systray(void)
     SIZE size;
     WNDCLASSEXW class;
     static const WCHAR classname[] = {'S','h','e','l','l','_','T','r','a','y','W','n','d',0};
-    static const WCHAR winname[] = {'W','i','n','e',' ','S','y','s','t','e','m',' ','T','r','a','y',0};
 
     if ((x11drv = GetModuleHandleA( "winex11.drv" )))
         wine_notify_icon = (void *)GetProcAddress( x11drv, "wine_notify_icon" );
@@ -589,7 +588,7 @@ void initialize_systray(void)
     }
 
     size = get_window_size();
-    tray_window = CreateWindowW( classname, winname, WS_OVERLAPPED | WS_CAPTION,
+    tray_window = CreateWindowW( classname, NULL, WS_OVERLAPPED | WS_CAPTION,
                                  CW_USEDEFAULT, CW_USEDEFAULT, size.cx, size.cy, 0, 0, 0, 0 );
     if (!tray_window)
     {
-- 
1.7.0.6




More information about the wine-patches mailing list