summaryrefslogtreecommitdiff
path: root/plugins/Clist_nicer
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Clist_nicer')
-rw-r--r--plugins/Clist_nicer/src/clistmenus.cpp5
-rw-r--r--plugins/Clist_nicer/src/clui.cpp2
2 files changed, 3 insertions, 4 deletions
diff --git a/plugins/Clist_nicer/src/clistmenus.cpp b/plugins/Clist_nicer/src/clistmenus.cpp
index 5a71b78328..0a842dff26 100644
--- a/plugins/Clist_nicer/src/clistmenus.cpp
+++ b/plugins/Clist_nicer/src/clistmenus.cpp
@@ -34,10 +34,9 @@ void InitIconLibMenuIcons();
INT_PTR CloseAction(WPARAM, LPARAM)
{
- int k;
cfg::shutDown = 1;
- k = CallService(MS_SYSTEM_OKTOEXIT, 0, 0);
- if (k) {
+
+ if (Miranda_OkToExit()) {
DestroyWindow(pcli->hwndContactList);
PostQuitMessage(0);
Sleep(0);
diff --git a/plugins/Clist_nicer/src/clui.cpp b/plugins/Clist_nicer/src/clui.cpp
index 16b1e83f60..0862892698 100644
--- a/plugins/Clist_nicer/src/clui.cpp
+++ b/plugins/Clist_nicer/src/clui.cpp
@@ -1482,7 +1482,7 @@ buttons_done:
case ID_TRAY_EXIT:
case ID_ICQ_EXIT:
cfg::shutDown = 1;
- if (CallService(MS_SYSTEM_OKTOEXIT, 0, 0))
+ if (Miranda_OkToExit())
DestroyWindow(hwnd);
break;
case ID_TRAY_HIDE: