1
1
Fork 0
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:
Nathan 2016-01-09 22:43:49 -05:00
parent 5c81923598
commit f666367130

View file

@ -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)]);