From cb8cc0d098cc43b2ee9b34133a06d2b93b56cb4f Mon Sep 17 00:00:00 2001 From: Ged Murphy Date: Sat, 20 Jan 2018 18:50:10 +0000 Subject: [PATCH] [EXPLORER] We need to leave one slot available for the m_WakeUpEvent handle --- base/shell/explorer/trayntfy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/shell/explorer/trayntfy.cpp b/base/shell/explorer/trayntfy.cpp index ae52dee2261..1864e33e96f 100644 --- a/base/shell/explorer/trayntfy.cpp +++ b/base/shell/explorer/trayntfy.cpp @@ -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);