[EXPLORER]

We need to leave one slot available for the m_WakeUpEvent handle
This commit is contained in:
Ged Murphy 2018-01-20 18:50:10 +00:00
parent be2bf9b8c5
commit cb8cc0d098

View file

@ -155,7 +155,7 @@ public:
// The likelyhood of someone having more than 64 icons in their tray is // The likelyhood of someone having more than 64 icons in their tray is
// pretty slim. We could spin up a new thread for each multiple of 64, but // pretty slim. We could spin up a new thread for each multiple of 64, but
// it's not worth the effort, so we just won't bother watching those icons // it's not worth the effort, so we just won't bother watching those icons
if (m_WatcherList.GetCount() <= MAXIMUM_WAIT_OBJECTS) if (m_WatcherList.GetCount() < MAXIMUM_WAIT_OBJECTS)
{ {
m_WatcherList.AddTail(Icon); m_WatcherList.AddTail(Icon);
SetEvent(m_WakeUpEvent); SetEvent(m_WakeUpEvent);