mirror of
https://github.com/reactos/reactos.git
synced 2024-11-04 22:00:55 +00:00
[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:
parent
c6aa07f7ce
commit
8c717d09ae
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue