Fix drive letter check (fixes #584)

This commit is contained in:
Matt Nadareski
2023-10-18 10:22:05 -04:00
parent 3b19463913
commit 4f4b6879b6
2 changed files with 2 additions and 1 deletions

View File

@@ -9,6 +9,7 @@
- Add first-run Options title, fix saving bug
- Fix multiple handler invocation
- Create method for applying theme
- Fix drive letter check
### 2.7.2 (2023-10-17)

View File

@@ -684,7 +684,7 @@ namespace MPF.Core
OutputPath = InfoTool.NormalizeOutputPaths(OutputPath, true);
// Validate that the output path isn't on the dumping drive
if (Drive?.Name != null && !OutputPath.StartsWith(Drive.Name))
if (Drive?.Name != null && OutputPath.StartsWith(Drive.Name))
return Result.Failure("Error! Cannot output to same drive that is being dumped!");
// Validate that the required program exists