Module: wine Branch: master Commit: be784ba1c5c084af94735e87b31d1fa0c33d379b URL: http://source.winehq.org/git/wine.git/?a=commit;h=be784ba1c5c084af94735e87b3...
Author: Kirill K. Smirnov lich@math.spbu.ru Date: Thu Feb 7 15:23:56 2008 +0000
systray: Better validate icon owner.
---
programs/explorer/systray.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/programs/explorer/systray.c b/programs/explorer/systray.c index 28a440f..b01203f 100644 --- a/programs/explorer/systray.c +++ b/programs/explorer/systray.c @@ -439,7 +439,7 @@ static LRESULT WINAPI adaptor_wndproc(HWND window, UINT msg, /* 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); - if (!ret && (GetLastError() == ERROR_INVALID_HANDLE)) + if (!ret && (GetLastError() == ERROR_INVALID_WINDOW_HANDLE)) { WINE_WARN("application window was destroyed without removing " "notification icon, removing automatically\n");