[0.4.12][EXPLORER] Properly initialize tbBtn.iBitmap. CORE-14262 PR#1667

In CNotifyToolbar::AddButton tbBtn.iBitmap (imagelist-index)
was initialized with 0. TightVNC adds the icon without NIF_ICON flag.
So the wrong icon index was kept and later replaced.

This fixes an old regression visible since SVN r68893

cherry picked from commit 0.4.13-dev-481-g
8d6c9e844c
This commit is contained in:
Andreas Maier 2019-06-18 22:40:27 +02:00 committed by Joachim Henze
parent c6aa07f7ce
commit 8c717d09ae

View file

@ -737,6 +737,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)
{