[misc] pocketful of enhancement and fixes - part 2

* Add a warning for 4K drives
* Also fix a typo in .loc comments
This commit is contained in:
Pete Batard 2015-01-08 23:21:08 +00:00
parent 2e817ae944
commit 9e2f85cb9d
3 changed files with 47 additions and 36 deletions

View file

@ -2116,6 +2116,12 @@ static INT_PTR CALLBACK MainCallback(HWND hDlg, UINT message, WPARAM wParam, LPA
format_op_in_progress = FALSE;
break;
}
if ((IsChecked(IDC_BOOT)) && (SelectedDrive.Geometry.BytesPerSector != 512) &&
(MessageBoxU(hMainDialog, lmprintf(MSG_196, SelectedDrive.Geometry.BytesPerSector),
lmprintf(MSG_197), MB_OKCANCEL|MB_ICONWARNING|MB_IS_RTL) == IDCANCEL)) {
format_op_in_progress = FALSE;
break;
}
// Disable all controls except cancel
EnableControls(FALSE);