diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/PluginUpdater/src/DlgListNew.cpp | 4 | ||||
-rw-r--r-- | plugins/PluginUpdater/src/DlgUpdate.cpp | 4 |
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)
|