[misc] fix issues with unpartitioned drives and bad blocks reports

* Listing an unpartitioned could result in all controls besides
  drive selection dropdown being blank
* The bad blocks report was not displaying the right values
* Also update version to Rufus next
This commit is contained in:
Pete Batard 2014-03-29 00:42:49 +00:00
parent 027d0d7c3a
commit b343d9b86d
8 changed files with 64 additions and 58 deletions

View file

@ -1315,12 +1315,12 @@ DWORD WINAPI FormatThread(void* param)
_unlink(logfile);
goto out;
}
uprintf("Bad Blocks: Check completed, %u bad block%s found. (%d/%d/%d errors)\n",
uprintf("Bad Blocks: Check completed, %d bad block%s found. (%d/%d/%d errors)\n",
report.bb_count, (report.bb_count==1)?"":"s",
report.num_read_errors, report.num_write_errors, report.num_corruption_errors);
r = IDOK;
if (report.bb_count) {
bb_msg = lmprintf(MSG_011, report.num_read_errors, report.num_write_errors,
bb_msg = lmprintf(MSG_011, report.bb_count, report.num_read_errors, report.num_write_errors,
report.num_corruption_errors);
fprintf(log_fd, bb_msg);
GetLocalTime(&lt);