mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 23:33:24 +08:00
[EXPLORER]
We need to leave one slot available for the m_WakeUpEvent handle
This commit is contained in:
@@ -155,7 +155,7 @@ public:
|
||||
// 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
|
||||
// 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);
|
||||
SetEvent(m_WakeUpEvent);
|
||||
|
||||
Reference in New Issue
Block a user