mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-23 11:17:03 -04:00
[loc] fix a crash on exit
* Don't free loc_filename if it points to embedded name * Also fix resizing of main dialog
This commit is contained in:
parent
ff28e2027c
commit
4e840a6995
3 changed files with 12 additions and 9 deletions
|
@ -131,7 +131,8 @@ void init_localization(void) {
|
|||
void exit_localization(void) {
|
||||
free_dialog_list();
|
||||
free_locale_list();
|
||||
safe_free(loc_filename);
|
||||
if (loc_filename != embedded_loc_filename)
|
||||
safe_free(loc_filename);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -240,6 +241,8 @@ void apply_localization(int dlg_id, HWND hDlg)
|
|||
continue;
|
||||
}
|
||||
hCtrl = hDlg;
|
||||
if (dlg_id == IDD_DIALOG)
|
||||
hDlg = NULL;
|
||||
} else {
|
||||
hCtrl = GetDlgItem(hDlg, lcmd->ctrl_id);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue