diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/stdclist/src/clistmenus.cpp | 7 |
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()
|