diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2014-07-21 09:16:25 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2014-07-21 09:16:25 +0000 |
commit | 47e722306dbd2205bcd9bc101d3af3e0855ceeb9 (patch) | |
tree | 7c298e29aa01749a412413b210ca3dcc8a6a92ef /plugins/PluginUpdater | |
parent | 751fcc4ab0cc0c4fc82e38251ade8239ecae6e2d (diff) |
more reverts to be on a safe side
git-svn-id: http://svn.miranda-ng.org/main/trunk@9899 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater')
-rw-r--r-- | plugins/PluginUpdater/src/DlgListNew.cpp | 4 | ||||
-rw-r--r-- | 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 e5b2f7efe2..4ef7d445b2 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()) {
- DestroyWindow(hDlg);
+ EndDialog(hDlg, 0);
return;
}
@@ -119,7 +119,7 @@ static void ApplyDownloads(void *param) if (rc == IDYES)
CallFunctionAsync(OpenPluginOptions, 0);
- DestroyWindow(hDlg);
+ EndDialog(hDlg, 0);
return;
}
diff --git a/plugins/PluginUpdater/src/Notifications.cpp b/plugins/PluginUpdater/src/Notifications.cpp index 6ae436e987..06b308d673 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))
- DestroyWindow(pmpd->hDialog);
+ EndDialog(pmpd->hDialog, LOWORD(wParam));
PUDeletePopup(hDlg);
break;
case IDNO:
if (IsWindow(pmpd->hDialog))
- DestroyWindow(pmpd->hDialog);
+ EndDialog(pmpd->hDialog, LOWORD(wParam));
PUDeletePopup(hDlg);
break;
}
|