summaryrefslogtreecommitdiff
path: root/plugins/PluginUpdater
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-09-13 05:37:58 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-09-13 05:37:58 +0000
commit1fc1e23f77a34529361503ab69cc96ad70d2a3c4 (patch)
tree1e4d0347cefac2c98e4bad55d812c5918438c547 /plugins/PluginUpdater
parentab373716a04db4555507c57025e569b80fb31e8f (diff)
fixed dialog closing
git-svn-id: http://svn.miranda-ng.org/main/trunk@6052 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater')
-rw-r--r--plugins/PluginUpdater/src/DlgListNew.cpp4
-rw-r--r--plugins/PluginUpdater/src/DlgUpdate.cpp4
2 files changed, 4 insertions, 4 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;
}
diff --git a/plugins/PluginUpdater/src/DlgUpdate.cpp b/plugins/PluginUpdater/src/DlgUpdate.cpp
index daeb31b98e..9422445a3c 100644
--- a/plugins/PluginUpdater/src/DlgUpdate.cpp
+++ b/plugins/PluginUpdater/src/DlgUpdate.cpp
@@ -45,7 +45,7 @@ static void ApplyUpdates(void *param)
// if we need to escalate priviledges, launch a atub
if ( !PrepareEscalation()) {
- DestroyWindow(hDlg);
+ EndDialog(hDlg, 0);
return;
}
@@ -136,7 +136,7 @@ static void ApplyUpdates(void *param)
}
if (hPipe)
CloseHandle(hPipe);
- DestroyWindow(hDlg);
+ EndDialog(hDlg, 0);
}
static void ResizeVert(HWND hDlg, int yy)