mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-29 05:55:30 -04:00
[vhd] fix a crash when saving .ffu images with release version
* Also update Rufus next to 4.4
This commit is contained in:
parent
020e0b7c3a
commit
58c56eb398
4 changed files with 19 additions and 19 deletions
|
@ -1085,9 +1085,9 @@ static DWORD WINAPI FfuSaveImageThread(void* param)
|
|||
{
|
||||
DWORD r;
|
||||
IMG_SAVE* img_save = (IMG_SAVE*)param;
|
||||
char cmd[MAX_PATH + 128], *letter = "", *label;
|
||||
char cmd[MAX_PATH + 128], letters[27], *label;
|
||||
|
||||
GetDriveLabel(SelectedDrive.DeviceNumber, letter, &label, TRUE);
|
||||
GetDriveLabel(SelectedDrive.DeviceNumber, letters, &label, TRUE);
|
||||
static_sprintf(cmd, "dism /Capture-Ffu /CaptureDrive:%s /ImageFile:\"%s\" "
|
||||
"/Name:\"%s\" /Description:\"Created by %s (%s)\"",
|
||||
img_save->DevicePath, img_save->ImagePath, label, APPLICATION_NAME, RUFUS_URL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue