mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-20 18:05:21 -04:00
[core] improve handling of DD images and formatting task order
* Add logic to mount/remount a DD image if it contains a partition we can handle * Clear GPT structures before copying DD image in case it doesn't overwrites them * Add a call to refresh the drive layout after copying a DD image * Move the unlocking of logical drive further down. This may help with the infamous "device in use by another process" error.
This commit is contained in:
parent
f6ab32c95d
commit
79a871be63
6 changed files with 99 additions and 60 deletions
|
@ -104,6 +104,7 @@ extern void _uprintf(const char *format, ...);
|
|||
#define uprintf(...) _uprintf(__VA_ARGS__)
|
||||
#define vuprintf(...) if (verbose) _uprintf(__VA_ARGS__)
|
||||
#define vvuprintf(...) if (verbose > 1) _uprintf(__VA_ARGS__)
|
||||
#define suprintf(...) if (!bSilent) _uprintf(__VA_ARGS__)
|
||||
#ifdef _DEBUG
|
||||
#define duprintf(...) _uprintf(__VA_ARGS__)
|
||||
#else
|
||||
|
@ -114,6 +115,7 @@ extern void _uprintf(const char *format, ...);
|
|||
#define vuprintf(...)
|
||||
#define vvuprintf(...)
|
||||
#define duprintf(...)
|
||||
#define suprintf(...)
|
||||
#endif
|
||||
|
||||
/* Custom Windows messages */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue