diff --git a/reactos/include/reactos/shellutils.h b/reactos/include/reactos/shellutils.h index ada3152825b..56ad7fcf30b 100644 --- a/reactos/include/reactos/shellutils.h +++ b/reactos/include/reactos/shellutils.h @@ -70,12 +70,16 @@ public: static void Term() { ULONG ref; +#ifdef ASSERT ASSERT(!s_IsTerminated); +#endif s_IsTerminated = true; if (s_pInstance) { ref = s_pInstance->Release(); +#ifdef ASSERT ASSERT(ref == 0); +#endif s_pInstance = NULL; } }