[ui] remove "Default allocation size" entry to use "(Default)" suffix instead

* also properly set media type when formatting
This commit is contained in:
Pete Batard 2011-12-04 20:13:51 +00:00
parent 5065c02d63
commit 3e3126667e
3 changed files with 16 additions and 19 deletions

View file

@ -139,7 +139,6 @@ static BOOL FormatDrive(char DriveLetter)
PrintStatus("Formatting...");
PF_INIT_OR_OUT(FormatEx, fmifs);
// TODO: properly set MediaType
GetWindowTextW(hFileSystem, wFSType, ARRAYSIZE(wFSType));
// We may have a " (Default)" trail
for (i=0; i<wcslen(wFSType); i++) {
@ -150,7 +149,7 @@ static BOOL FormatDrive(char DriveLetter)
}
GetWindowTextW(hLabel, wLabel, ARRAYSIZE(wLabel));
uprintf("Using cluster size: %d bytes\n", ComboBox_GetItemData(hClusterSize, ComboBox_GetCurSel(hClusterSize)));
pfFormatEx(wDriveRoot, RemovableMedia, wFSType, wLabel,
pfFormatEx(wDriveRoot, SelectedDrive.Geometry.MediaType, wFSType, wLabel,
IsChecked(IDC_QUICKFORMAT), (ULONG)ComboBox_GetItemData(hClusterSize, ComboBox_GetCurSel(hClusterSize)),
FormatExCallback);
if (!IS_ERROR(FormatStatus)) {