[DatFile] Fix crash in DFD with single file

This commit is contained in:
Matt Nadareski
2016-10-24 16:19:12 -07:00
parent 37afe370ac
commit 8af7ee4eb5

View File

@@ -3934,7 +3934,7 @@ namespace SabreTools.Helper.Dats
}
else if (File.Exists(basePath))
{
DFDProcessPossibleArchive(basePath, basePath, noMD5, noSHA1, bare, archivesAsFiles, enableGzip, addBlanks, addDate,
DFDProcessPossibleArchive(basePath, Path.GetDirectoryName(Path.GetDirectoryName(basePath)), noMD5, noSHA1, bare, archivesAsFiles, enableGzip, addBlanks, addDate,
tempDir, copyFiles, headerToCheckAgainst, maxDegreeOfParallelism, logger);
}