mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-28 13:44:15 -04:00
[ui] fix an issue where 2 dialogs could exist onscreen when switching languages
This commit is contained in:
parent
fca4e2d59b
commit
60e21ed910
2 changed files with 8 additions and 5 deletions
|
@ -4052,6 +4052,9 @@ relaunch:
|
|||
/*
|
||||
* Create the main Window
|
||||
*/
|
||||
if (hDlg != NULL)
|
||||
// Make sure any previous dialog is destroyed (e.g. when switching languages)
|
||||
DestroyWindow(hDlg);
|
||||
hDlg = MyCreateDialog(hInstance, IDD_DIALOG, NULL, MainCallback);
|
||||
if (hDlg == NULL) {
|
||||
MessageBoxExU(NULL, "Could not create Window", "DialogBox failure",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue