mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-18 17:14:41 -04:00
[misc] add MD5 and SHA-1 computation for current image
* Uses the Alt-M cheat mode for now * Closes #475
This commit is contained in:
parent
477674016e
commit
c95910e268
11 changed files with 764 additions and 114 deletions
|
@ -1481,7 +1481,6 @@ void update_progress(const uint64_t processed_bytes)
|
|||
* Unlock the volume.
|
||||
* Close the volume handle.
|
||||
*/
|
||||
#define CHECK_FOR_USER_CANCEL if (IS_ERROR(FormatStatus)) goto out
|
||||
DWORD WINAPI FormatThread(void* param)
|
||||
{
|
||||
int i, r, pt, bt, fs, dt;
|
||||
|
@ -1972,7 +1971,7 @@ out:
|
|||
free(guid_volume);
|
||||
}
|
||||
}
|
||||
PostMessage(hMainDialog, UM_FORMAT_COMPLETED, 0, 0);
|
||||
PostMessage(hMainDialog, UM_FORMAT_COMPLETED, (WPARAM)TRUE, 0);
|
||||
ExitThread(0);
|
||||
}
|
||||
|
||||
|
@ -2074,6 +2073,6 @@ out:
|
|||
safe_free(buffer);
|
||||
safe_closehandle(hDestImage);
|
||||
safe_unlockclose(hPhysicalDrive);
|
||||
PostMessage(hMainDialog, UM_FORMAT_COMPLETED, 0, 0);
|
||||
PostMessage(hMainDialog, UM_FORMAT_COMPLETED, (WPARAM)TRUE, 0);
|
||||
ExitThread(0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue