Kirill K. Smirnov : systray: Better validate icon owner.

Alexandre Julliard julliard at winehq.org
Fri Feb 15 05:36:04 CST 2008


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

Author: Kirill K. Smirnov <lich at 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");




More information about the wine-cvs mailing list