mirror of
https://github.com/reactos/reactos.git
synced 2024-10-01 06:57:08 +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.dwData = (DWORD_PTR)notifyItem;
|
||||||
tbBtn.iString = (INT_PTR) text;
|
tbBtn.iString = (INT_PTR) text;
|
||||||
tbBtn.idCommand = GetButtonCount();
|
tbBtn.idCommand = GetButtonCount();
|
||||||
|
tbBtn.iBitmap = -1;
|
||||||
|
|
||||||
if (iconData->uFlags & NIF_STATE)
|
if (iconData->uFlags & NIF_STATE)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue