Ignore:
Timestamp:
Mar 15, 2011, 4:34:07 PM (14 years ago)
Author:
dmik
Message:

shell32: Shell_NotifyIcon(): Create a copy of the supplied icon because the caller may DestroyIcon() on it at any time (which would cause systray to display an empty rectangle). This matches Windows behavior.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/shell32/systray.c

    r10604 r21590  
    7878  SYSTRAY_ItemSetTip    (*ptrayItem, (pnid->uFlags&NIF_TIP)    ?pnid->szTip           :"", FALSE);
    7979
    80   TRACE("SYSTRAY_Add %p: 0x%08x 0x%08x 0x%08x %s\n",  (*ptrayItem), (*ptrayItem)->notifyIcon.hWnd,
     80  TRACE("SYSTRAY_Add %p: 0x%08x 0x%08x 0x%08x 0x%08x %s\n",  (*ptrayItem),
     81        (*ptrayItem)->notifyIcon.hWnd, (*ptrayItem)->notifyIcon.hIcon,
    8182        pnid->uCallbackMessage, (*ptrayItem)->notifyIcon.uCallbackMessage,
    8283        pnid->szTip );
Note: See TracChangeset for help on using the changeset viewer.