From 22956dbd60e52103afcfa87c93776c46a8c9947f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Mon, 21 Jul 2014 08:05:26 +0000 Subject: Plugin Updater: Another EndDialog -> DestroyWindow fixes @White-Tiger, thanks for explanation. git-svn-id: http://svn.miranda-ng.org/main/trunk@9896 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/PluginUpdater/src/DlgListNew.cpp | 4 ++-- plugins/PluginUpdater/src/Notifications.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/PluginUpdater/src/DlgListNew.cpp b/plugins/PluginUpdater/src/DlgListNew.cpp index 4ef7d445b2..e5b2f7efe2 100644 --- a/plugins/PluginUpdater/src/DlgListNew.cpp +++ b/plugins/PluginUpdater/src/DlgListNew.cpp @@ -41,7 +41,7 @@ static void ApplyDownloads(void *param) // if we need to escalate priviledges, launch a atub if (!PrepareEscalation()) { - EndDialog(hDlg, 0); + DestroyWindow(hDlg); return; } @@ -119,7 +119,7 @@ static void ApplyDownloads(void *param) if (rc == IDYES) CallFunctionAsync(OpenPluginOptions, 0); - EndDialog(hDlg, 0); + DestroyWindow(hDlg); return; } diff --git a/plugins/PluginUpdater/src/Notifications.cpp b/plugins/PluginUpdater/src/Notifications.cpp index 06b308d673..6ae436e987 100644 --- a/plugins/PluginUpdater/src/Notifications.cpp +++ b/plugins/PluginUpdater/src/Notifications.cpp @@ -42,13 +42,13 @@ static LRESULT CALLBACK PopupDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM switch (LOWORD(wParam)) { case IDYES: if (IsWindow(pmpd->hDialog)) - EndDialog(pmpd->hDialog, LOWORD(wParam)); + DestroyWindow(pmpd->hDialog); PUDeletePopup(hDlg); break; case IDNO: if (IsWindow(pmpd->hDialog)) - EndDialog(pmpd->hDialog, LOWORD(wParam)); + DestroyWindow(pmpd->hDialog); PUDeletePopup(hDlg); break; } -- cgit v1.2.3