Merge branch 'master' into master

This commit is contained in:
Matt Nadareski
2018-06-13 12:20:14 -07:00
committed by GitHub
2 changed files with 7 additions and 3 deletions

View File

@@ -414,8 +414,12 @@ namespace DICUI
/// </summary>
private void SetSupportedDriveSpeed()
{
string driveLetter = cmb_DriveLetter.Text;
if (String.IsNullOrWhiteSpace(driveLetter))
// Get the drive letter from the selected item
var selected = cmb_DriveLetter.SelectedItem as Tuple<char, string>;
char driveLetter = selected.Item1;
// Validate that the required program exits
if (!File.Exists(dicPath))
{
return;
}

View File

@@ -1773,7 +1773,7 @@ namespace DICUI
{
return false;
}
else if (dvdspeed < 0 || dvdspeed > 16)
else if (dvdspeed < 0 || dvdspeed > 72) // Officialy, 0-16
{
return false;
}