[ui] report ISO progress in main/icon progressbar

* Also improve granularity for ISO progress
* Also fixes an issue with badblocks report
This commit is contained in:
Pete Batard 2012-03-29 20:27:53 +01:00
parent 8d2fd913b0
commit bb76f1f636
6 changed files with 37 additions and 20 deletions

View file

@ -566,6 +566,9 @@ BOOL BadBlocks(HANDLE hPhysicalDrive, ULONGLONG disk_size, size_t block_size,
blk_t first_block = 0, last_block = disk_size/block_size;
if (report == NULL) return FALSE;
num_read_errors = 0;
num_write_errors = 0;
num_corruption_errors = 0;
report->bb_count = 0;
if (fd != NULL) {
log_fd = fd;