mirror of
https://github.com/reactos/reactos.git
synced 2026-06-03 09:51:03 +08: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:
committed by
Mark Jansen
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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user