mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 22:50:43 +00:00
Keep an internal copy of the icon.
This commit is contained in:
parent
6fbbe0ffe6
commit
d1819bf7bd
@ -249,7 +249,8 @@ void SYSTRAY_InitItem(SystrayData *ptrayItem)
|
||||
|
||||
void SYSTRAY_SetIcon(SystrayData *ptrayItem, HICON hIcon)
|
||||
{
|
||||
ptrayItem->notifyIcon.hIcon = hIcon;
|
||||
/* keep our own copy of "hIcon" object */
|
||||
ptrayItem->notifyIcon.hIcon = CopyIcon(hIcon);
|
||||
}
|
||||
|
||||
void SYSTRAY_SetTip(SystrayData *ptrayItem, CHAR* szTip)
|
||||
@ -430,6 +431,7 @@ static BOOL SYSTRAY_Delete(PNOTIFYICONDATAA pnid)
|
||||
(*ptrayItem)->notifyIcon.uID, (*ptrayItem)->notifyIcon.szTip);
|
||||
SYSTRAY_TermItem(*ptrayItem);
|
||||
|
||||
DestroyIcon ((*ptrayItem)->notifyIcon.hIcon);
|
||||
DestroyWindow((*ptrayItem)->hWndToolTip);
|
||||
DestroyWindow((*ptrayItem)->hWnd);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user