From 50db0044b003a3b8f504f4e61bfce136517a3541 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sun, 1 Nov 2020 14:06:46 -0800 Subject: [PATCH] Fix MSCab corner case of trailing periods --- BurnOutSharp/FileType/MicrosoftCAB.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BurnOutSharp/FileType/MicrosoftCAB.cs b/BurnOutSharp/FileType/MicrosoftCAB.cs index dff92bac..3f9788b7 100644 --- a/BurnOutSharp/FileType/MicrosoftCAB.cs +++ b/BurnOutSharp/FileType/MicrosoftCAB.cs @@ -37,7 +37,8 @@ namespace BurnOutSharp.FileType // If an individual entry fails try { - string tempFile = Path.Combine(tempPath, sub.Filename); + // The trim here is for some very odd and stubborn files + string tempFile = Path.Combine(tempPath, sub.Filename.TrimEnd('.')); sub.ExtractTo(tempFile); } catch { }