[ui] fix UEFI/BIOS mode never being disabled once enabled

* Closes #635
* Also fix minor logic issue and trailing whitespaces
This commit is contained in:
Pete Batard 2015-11-05 22:54:38 +00:00
parent 759599221c
commit 549bf731a6
4 changed files with 16 additions and 14 deletions

View file

@ -1647,7 +1647,9 @@ DWORD WINAPI FormatThread(void* param)
}
RefreshDriveLayout(hPhysicalDrive);
goto out;
} else if (IsChecked(IDC_BADBLOCKS)) {
}
if (IsChecked(IDC_BADBLOCKS)) {
do {
// create a log file for bad blocks report. Since %USERPROFILE% may
// have localized characters, we use the UTF-8 API.