mirror of
https://github.com/pbatard/rufus.git
synced 2024-08-14 23:57:05 +00:00
Fixed bug where IDC_BOOT would change label to empty if no file had ever been selected
This commit is contained in:
parent
5c81923598
commit
f666367130
1 changed files with 1 additions and 1 deletions
|
@ -2379,7 +2379,7 @@ static INT_PTR CALLBACK MainCallback(HWND hDlg, UINT message, WPARAM wParam, LPA
|
||||||
if(selection_default == BT_IMG)
|
if(selection_default == BT_IMG)
|
||||||
ToggleImage(!IsChecked(IDC_BOOT));
|
ToggleImage(!IsChecked(IDC_BOOT));
|
||||||
|
|
||||||
if(IsChecked(IDC_BOOT)) {
|
if(IsChecked(IDC_BOOT) && (img_report.label != NULL && img_report.label[0] != '\0')) {
|
||||||
SetWindowTextU(hLabel, img_report.label);
|
SetWindowTextU(hLabel, img_report.label);
|
||||||
} else {
|
} else {
|
||||||
SetWindowTextU(hLabel, DriveLabel.String[ComboBox_GetCurSel(hDeviceList)]);
|
SetWindowTextU(hLabel, DriveLabel.String[ComboBox_GetCurSel(hDeviceList)]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue