mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-23 03:06:56 -04:00
[core] revert to having the ESP as the last partition
* This is to avoid Microsoft's appalling refresh of the partition layout,
which can result in partitions not being assigned a volume GUID.
* Mostly reverts a change that was applied in 1c39a80d72
.
* Also add some more enum output and bail if we can't get a logical drive.
* Closes #1351
This commit is contained in:
parent
f0c843fcdc
commit
936bd9beb0
3 changed files with 48 additions and 53 deletions
|
@ -2679,8 +2679,11 @@ DWORD WINAPI FormatThread(void* param)
|
|||
// Wait for the logical drive we just created to appear
|
||||
uprintf("Waiting for logical drive to reappear...");
|
||||
Sleep(200);
|
||||
if (!WaitForLogical(DriveIndex, partition_index[PI_MAIN]))
|
||||
uprintf("Logical drive was not found!"); // We try to continue even if this fails, just in case
|
||||
if (!WaitForLogical(DriveIndex, partition_index[PI_MAIN])) {
|
||||
uprintf("Logical drive was not found - aborting");
|
||||
FormatStatus = ERROR_SEVERITY_ERROR | FAC(FACILITY_STORAGE) | ERROR_NO_VOLUME_ID;
|
||||
goto out;
|
||||
}
|
||||
CHECK_FOR_USER_CANCEL;
|
||||
|
||||
// Format Casper partition if required. Do it before we format anything with
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue