[EXPLORER] Properly initialise tbBtn.iBitmap. CORE-14262.
authorAndreas Maier <staubim@quantentunnel.de>
Tue, 18 Jun 2019 20:40:27 +0000 (22:40 +0200)
committerMark Jansen <mark.jansen@reactos.org>
Wed, 19 Jun 2019 18:37:04 +0000 (20:37 +0200)
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.

base/shell/explorer/syspager.cpp

index 2186933..8d4f914 100644 (file)
@@ -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)
     {