winemac: Send systray messages with SendNotifyMessage().

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50441
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 46c4facab7)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
This commit is contained in:
Zebediah Figura 2021-01-30 13:54:32 -06:00 committed by Michael Stefaniuc
parent ec8c5545c3
commit 2e1ba07a11
1 changed files with 1 additions and 1 deletions

View File

@ -290,7 +290,7 @@ static BOOL notify_owner(struct tray_icon *icon, UINT msg, int x, int y)
}
TRACE("posting msg 0x%04x to hwnd %p id 0x%x\n", msg, icon->owner, icon->id);
if (!PostMessageW(icon->owner, icon->callback_message, wp, lp) &&
if (!SendNotifyMessageW(icon->owner, icon->callback_message, wp, lp) &&
(GetLastError() == ERROR_INVALID_WINDOW_HANDLE))
{
WARN("window %p was destroyed, removing icon 0x%x\n", icon->owner, icon->id);