summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-08-03 19:05:12 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-08-03 19:05:12 +0300
commitf38fdd5fa8c435c42e31fcc8f99c796515355067 (patch)
tree99cd0c91826ed9137e524a0165ec15ec192a8192 /src/core
parentd057fcad5175ef542723981f59c6184a67942864 (diff)
CloseAction: spin cycle removed
Diffstat (limited to 'src/core')
-rw-r--r--src/core/stdclist/src/clistmenus.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/stdclist/src/clistmenus.cpp b/src/core/stdclist/src/clistmenus.cpp
index ccfc8a8241..81f248bf59 100644
--- a/src/core/stdclist/src/clistmenus.cpp
+++ b/src/core/stdclist/src/clistmenus.cpp
@@ -26,10 +26,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
static INT_PTR CloseAction(WPARAM, LPARAM)
{
- if (Miranda_OkToExit())
- DestroyWindow(g_clistApi.hwndContactList);
+ while (!Miranda_OkToExit())
+ Sleep(100);
- return(0);
+ DestroyWindow(g_clistApi.hwndContactList);
+ return 0;
}
void InitCustomMenus()