summaryrefslogtreecommitdiff
path: root/plugins/PluginUpdater/src/DlgListNew.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/PluginUpdater/src/DlgListNew.cpp')
-rw-r--r--plugins/PluginUpdater/src/DlgListNew.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/PluginUpdater/src/DlgListNew.cpp b/plugins/PluginUpdater/src/DlgListNew.cpp
index 2f748f5158..e5f5974927 100644
--- a/plugins/PluginUpdater/src/DlgListNew.cpp
+++ b/plugins/PluginUpdater/src/DlgListNew.cpp
@@ -38,7 +38,7 @@ static void ApplyDownloads(void *param)
// if we need to escalate priviledges, launch a atub
if ( !PrepareEscalation()) {
- DestroyWindow(hDlg);
+ EndDialog(hDlg, 0);
return;
}
@@ -118,7 +118,7 @@ static void ApplyDownloads(void *param)
if (hPipe)
CloseHandle(hPipe);
CloseWindow(hDlg);
- DestroyWindow(hDlg);
+ EndDialog(hDlg, 0);
hwndDialog = NULL;
return;
}