systray: Better validate icon owner.

oldstable
Kirill K. Smirnov 2008-02-07 15:23:56 +00:00 committed by Alexandre Julliard
parent be2911a180
commit be784ba1c5
1 changed files with 1 additions and 1 deletions

View File

@ -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");