Module: wine Branch: master Commit: 3456e5627aac55a2234067ddc4f7caf38d1bc657 URL: http://source.winehq.org/git/wine.git/?a=commit;h=3456e5627aac55a2234067ddc4...
Author: Kirill K. Smirnov lich@math.spbu.ru Date: Fri Jan 12 04:48:52 2007 +0300
explorer/systray: Some code cleanup.
---
programs/explorer/systray.c | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/programs/explorer/systray.c b/programs/explorer/systray.c index 7fc66fd..ee2a1aa 100644 --- a/programs/explorer/systray.c +++ b/programs/explorer/systray.c @@ -123,7 +123,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 +132,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 +141,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; }