mirror of
https://github.com/reactos/reactos.git
synced 2024-06-30 18:01:07 +00:00
[EXPLORER] Properly initialise tbBtn.iBitmap. CORE-14262.
In CNotifyToolbar::AddButton tbBtn.iBitmap (imagelist-index) was inialised with 0. Tigthvnc adds the icon wihtout NIF_ICON flag. So the wrong icon index was kept and later replaced.
This commit is contained in:
parent
7796df375a
commit
8d6c9e844c
|
@ -742,6 +742,7 @@ BOOL CNotifyToolbar::AddButton(_In_ CONST NOTIFYICONDATA *iconData)
|
|||
tbBtn.dwData = (DWORD_PTR)notifyItem;
|
||||
tbBtn.iString = (INT_PTR) text;
|
||||
tbBtn.idCommand = GetButtonCount();
|
||||
tbBtn.iBitmap = -1;
|
||||
|
||||
if (iconData->uFlags & NIF_STATE)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue