summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-04-23 17:19:31 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-04-23 17:19:31 +0300
commitc475a38756f0f7a0404b62e6c4f924ca9900b25a (patch)
tree43fdbb616c2f97d01580720faf28e9b615347045
parent4f688b57e4f370bf37117cccb0c2fba115c9a698 (diff)
no need to work after shutdown
-rw-r--r--plugins/UserInfoEx/src/mir_menuitems.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/UserInfoEx/src/mir_menuitems.cpp b/plugins/UserInfoEx/src/mir_menuitems.cpp
index d5966d1574..8a3986996e 100644
--- a/plugins/UserInfoEx/src/mir_menuitems.cpp
+++ b/plugins/UserInfoEx/src/mir_menuitems.cpp
@@ -481,6 +481,9 @@ void RebuildSubGroup()
**/
INT_PTR RebuildAccount(WPARAM, LPARAM lParam)
{
+ if (Miranda_IsTerminated())
+ return 0;
+
const BYTE mItems = 3; // menuitems to create
BYTE item = 0;