From 4f4b6879b6e75700ce1aa2bd173ca4a3117b0047 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Wed, 18 Oct 2023 10:22:05 -0400 Subject: [PATCH] Fix drive letter check (fixes #584) --- CHANGELIST.md | 1 + MPF.Core/DumpEnvironment.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELIST.md b/CHANGELIST.md index 0eec6c26..f7e78078 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -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) diff --git a/MPF.Core/DumpEnvironment.cs b/MPF.Core/DumpEnvironment.cs index da3851fb..b65d6a51 100644 --- a/MPF.Core/DumpEnvironment.cs +++ b/MPF.Core/DumpEnvironment.cs @@ -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