mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-19 01:15:12 -04:00
[misc] Fix various issues
* Attempt to remount the drive in case of failure (Closes #270) * Minor fixes to localization * Fix errors not being properly reported in DownloadFile() * Also update ChangeLog.txt for beta
This commit is contained in:
parent
573ea45640
commit
d828500af7
5 changed files with 40 additions and 17 deletions
|
@ -1482,6 +1482,14 @@ out:
|
|||
SendMessage(hISOProgressDlg, UM_ISO_EXIT, 0, 0);
|
||||
safe_unlockclose(hLogicalVolume);
|
||||
safe_unlockclose(hPhysicalDrive); // This can take a while
|
||||
if (IS_ERROR(FormatStatus)) {
|
||||
guid_volume = GetLogicalName(DriveIndex, TRUE, FALSE);
|
||||
if (guid_volume != NULL) {
|
||||
if (MountVolume(drive_name, guid_volume))
|
||||
uprintf("Re-mounted volume as '%c:' after error\n", drive_name[0]);
|
||||
free(guid_volume);
|
||||
}
|
||||
}
|
||||
PostMessage(hMainDialog, UM_FORMAT_COMPLETED, 0, 0);
|
||||
ExitThread(0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue