https://git.reactos.org/?p=reactos.git;a=commitdiff;h=cb8cc0d098cc43b2ee9b34133a06d2b93b56cb4f

commit cb8cc0d098cc43b2ee9b34133a06d2b93b56cb4f
Author:     Ged Murphy <[email protected]>
AuthorDate: Sat Jan 20 18:50:10 2018 +0000
Commit:     Ged Murphy <[email protected]>
CommitDate: Sat Jan 20 18:50:10 2018 +0000

    [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 ae52dee226..1864e33e96 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);

Reply via email to