explorer/systray: some code cleanup

Kirill K. Smirnov lich at math.spbu.ru
Thu Jan 11 19:48:52 CST 2007


-------------- next part --------------
diff --git a/programs/explorer/systray.c b/programs/explorer/systray.c
index 7fc66fd..12c5c20 100644
--- a/programs/explorer/systray.c
+++ b/programs/explorer/systray.c
@@ -123,7 +126,6 @@ static LRESULT WINAPI adaptor_wndproc(HW
         case WM_LBUTTONDBLCLK:
         case WM_RBUTTONDBLCLK:
         case WM_MBUTTONDBLCLK:
-        {
             /* notify the owner hwnd of the message */
             WINE_TRACE("relaying 0x%x\n", msg);
             ret = PostMessage(icon->owner, icon->callback_message, (WPARAM) icon->id, (LPARAM) msg);
@@ -133,8 +135,7 @@ static LRESULT WINAPI adaptor_wndproc(HW
                           "notification icon, removing automatically\n");
                 DestroyWindow(window);
             }
-            return 0;
-        }
+            break;
 
         case WM_NCDESTROY:
             SetWindowLongPtr(window, GWLP_USERDATA, 0);
@@ -143,9 +144,12 @@ static LRESULT WINAPI adaptor_wndproc(HW
             DestroyIcon(icon->image);
             HeapFree(GetProcessHeap(), 0, icon);
             break;
+
+        default:
+            return DefWindowProc(window, msg, wparam, lparam);
     }
 
-    return DefWindowProc(window, msg, wparam, lparam);
+    return 0;
 }
 
 


More information about the wine-patches mailing list