mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-28 13:44:15 -04:00
[misc] fix WDK compilation
* Also ensure that the VHD extension is properly set on proposed dump name
This commit is contained in:
parent
4f0e8a24a8
commit
4c8cd053f0
3 changed files with 14 additions and 11 deletions
|
@ -2925,9 +2925,12 @@ relaunch:
|
|||
}
|
||||
// Alt-V => Save selected device to *UNCOMPRESSED* VHD
|
||||
if ((msg.message == WM_SYSKEYDOWN) && (msg.wParam == 'V')) {
|
||||
char vhd_name[128];
|
||||
int DriveIndex = ComboBox_GetCurSel(hDeviceList);
|
||||
if (DriveIndex >= 0)
|
||||
safe_sprintf(vhd_name, sizeof(vhd_name), "%s.vhd", DriveLabel.String[DriveIndex]);
|
||||
if ((DriveIndex != CB_ERR) && (!format_op_in_progress) && (format_thid == NULL)) {
|
||||
EXT_DECL(vhd_ext, DriveLabel.String[DriveIndex], __VA_GROUP__("*.vhd"), __VA_GROUP__("VHD File"));
|
||||
EXT_DECL(vhd_ext, vhd_name, __VA_GROUP__("*.vhd"), __VA_GROUP__("VHD File"));
|
||||
ULARGE_INTEGER free_space;
|
||||
VHD_SAVE vhd_save = { (DWORD)ComboBox_GetItemData(hDeviceList, DriveIndex), FileDialog(TRUE, NULL, &vhd_ext, 0) };
|
||||
if (vhd_save.path != NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue