mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-24 19:54:25 -04:00
[vds] improve VDS calls
* Make sure that instantiated objects are released. * Factorize the instantiating of disk interfaces. * Allow the provision of an offset to delete a single partition. * Add a ListVdsVolumes() call (which is pointless since Microsoft *CRIPPLED* its VDS implementation).
This commit is contained in:
parent
8085a2846d
commit
3758f84b17
5 changed files with 277 additions and 108 deletions
|
@ -1747,7 +1747,7 @@ DWORD WINAPI FormatThread(void* param)
|
|||
// for VDS to be able to delete the partitions that reside on it...
|
||||
safe_unlockclose(hPhysicalDrive);
|
||||
PrintInfo(0, MSG_239, lmprintf(MSG_307));
|
||||
if (!DeletePartitions(DriveIndex)) {
|
||||
if (!DeletePartition(DriveIndex, 0, FALSE)) {
|
||||
SetLastError(FormatStatus);
|
||||
uprintf("Notice: Could not delete partitions: %s", WindowsErrorString());
|
||||
FormatStatus = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue