diff --git a/UsbDk/UsbDkUtil.h b/UsbDk/UsbDkUtil.h index 21f511a..a76c9e4 100644 --- a/UsbDk/UsbDkUtil.h +++ b/UsbDk/UsbDkUtil.h @@ -128,7 +128,10 @@ public: CLockedContext LockedContext(*this); while (!IsListEmpty(&m_List)) { - Functor(Pop_LockLess()); + if (!Functor(Pop_LockLess())) + { + return; + } } } @@ -160,7 +163,10 @@ private: if (Predicate(Object)) { Prepare(CurrEntry); - Functor(Object); + if (!Functor(Object)) + { + return; + } } } }