From f666367130148ec5f767ff4b2a81ddfcbd0e3145 Mon Sep 17 00:00:00 2001 From: Nathan Date: Sat, 9 Jan 2016 22:43:49 -0500 Subject: [PATCH] Fixed bug where IDC_BOOT would change label to empty if no file had ever been selected --- src/rufus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rufus.c b/src/rufus.c index 8841c3c4..357749cc 100644 --- a/src/rufus.c +++ b/src/rufus.c @@ -2379,7 +2379,7 @@ static INT_PTR CALLBACK MainCallback(HWND hDlg, UINT message, WPARAM wParam, LPA if(selection_default == BT_IMG) 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); } else { SetWindowTextU(hLabel, DriveLabel.String[ComboBox_GetCurSel(hDeviceList)]);