Implement Drive.Create for safety

This commit is contained in:
Matt Nadareski
2022-04-20 13:47:55 -07:00
parent 9eee2f6444
commit 299d25af27
4 changed files with 100 additions and 45 deletions

View File

@@ -53,7 +53,7 @@ namespace MPF.Check
// Now populate an environment
Drive drive = null;
if (!string.IsNullOrWhiteSpace(path))
drive = new Drive(null, new DriveInfo(path));
drive = Drive.Create(null, path);
var env = new DumpEnvironment(options, "", filepath, drive, knownSystem, mediaType, null);