diff options
| -rw-r--r-- | plugins/PluginUpdater/src/DlgUpdate.cpp | 5 | 
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/PluginUpdater/src/DlgUpdate.cpp b/plugins/PluginUpdater/src/DlgUpdate.cpp index c7f02157ce..9d97a09dd6 100644 --- a/plugins/PluginUpdater/src/DlgUpdate.cpp +++ b/plugins/PluginUpdater/src/DlgUpdate.cpp @@ -51,7 +51,7 @@ static void ApplyUpdates(void *param)  	// 1) If we need to escalate priviledges, launch a stub
  	if (!PrepareEscalation()) {
 -		EndDialog(hDlg, 0);
 +		DestroyWindow(hDlg);
  		return;
  	}
 @@ -137,8 +137,7 @@ static void ApplyUpdates(void *param)  	// 5) Prepare Restart
  	int rc = MessageBox(hDlg, TranslateT("Update complete. Press Yes to restart Miranda now or No to postpone a restart until the exit."), TranslateT("Plugin Updater"), MB_YESNO | MB_ICONQUESTION);
 -	EndDialog(hDlg, 0);
 -	PostMessage(hDlg, WM_DESTROY, 0, 0); // why do we have to call this manually?
 +	DestroyWindow(hDlg);
  	if (rc == IDYES)
  		CallFunctionAsync(RestartMe, 0);
  }
  | 
