mirror of
https://github.com/reactos/reactos.git
synced 2025-07-30 08:41:41 +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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue