From f7537f418c733ff20a542725f293531d702722ae Mon Sep 17 00:00:00 2001 From: Neil Harvey Date: Tue, 10 Aug 2021 20:01:08 +0100 Subject: [PATCH] Update OpenMcdf to latest version. Fixes #37 --- src/FileSignatures/FileSignatures.csproj | 11 ++++++----- src/FileSignatures/Formats/CompoundFileBinary.cs | 2 +- test/FileSignatures.Tests/FileSignatures.Tests.csproj | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/FileSignatures/FileSignatures.csproj b/src/FileSignatures/FileSignatures.csproj index 6a663c5..f6d6c20 100644 --- a/src/FileSignatures/FileSignatures.csproj +++ b/src/FileSignatures/FileSignatures.csproj @@ -13,12 +13,13 @@ false false false - 4.0.0 + 4.0.1 true MIT - 4.0.0 + 4.0.1 8.0 enable + 4.0.1 @@ -35,19 +36,19 @@ - 2.2.1.3 + 2.2.1.9 - 2.2.1.3 + 2.2.1.9 - 2.2.1.3 + 2.2.1.9 diff --git a/src/FileSignatures/Formats/CompoundFileBinary.cs b/src/FileSignatures/Formats/CompoundFileBinary.cs index 69584e5..a3bb1a0 100644 --- a/src/FileSignatures/Formats/CompoundFileBinary.cs +++ b/src/FileSignatures/Formats/CompoundFileBinary.cs @@ -42,7 +42,7 @@ public bool IsMatch(IDisposable? file) { if(file is CompoundFile cf) { - return cf.RootStorage.TryGetStream(Storage) != null; + return cf.RootStorage.TryGetStream(Storage, out CFStream _); } else { diff --git a/test/FileSignatures.Tests/FileSignatures.Tests.csproj b/test/FileSignatures.Tests/FileSignatures.Tests.csproj index a192384..edc64be 100644 --- a/test/FileSignatures.Tests/FileSignatures.Tests.csproj +++ b/test/FileSignatures.Tests/FileSignatures.Tests.csproj @@ -1,7 +1,7 @@  - netcoreapp3.0 + net5.0 FileSignatures.Tests FileSignatures.Tests true