Windows: make /fastCreateFile switch apply to both UI and command line creation of file containers

This commit is contained in:
Mounir IDRASSI 2019-12-15 23:21:55 +01:00
parent 1e978e69cc
commit 826730650c
No known key found for this signature in database
GPG Key ID: 02C30AE90FAE4A6F

View File

@ -6157,6 +6157,8 @@ BOOL CALLBACK MainDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
exit (0);
}
fastCreateFile = CmdFastCreateFile;
if (DirectCreationMode)
{
wchar_t root[TC_MAX_PATH];
@ -6238,7 +6240,6 @@ BOOL CALLBACK MainDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
}
quickFormat = CmdQuickFormat;
fastCreateFile = CmdFastCreateFile;
dynamicFormat = CmdSparseFileSwitch;
if (!GetDiskFreeSpaceEx (root, &free, 0, 0))