diff --git a/Library/DiscUtils.Core/Compression/BigEndianBitStream.cs b/Library/DiscUtils.Core/Compression/BigEndianBitStream.cs index de8066d5..45ba1f9c 100644 --- a/Library/DiscUtils.Core/Compression/BigEndianBitStream.cs +++ b/Library/DiscUtils.Core/Compression/BigEndianBitStream.cs @@ -82,7 +82,7 @@ private void EnsureBufferFilled() { _readBuffer[0] = 0; _readBuffer[1] = 0; - _byteStream.ReadExactly(_readBuffer, 0, 2); + _ = _byteStream.Read(_readBuffer, 0, 2); _buffer = _buffer << 16 | (uint)(_readBuffer[0] << 8) | _readBuffer[1]; _bufferAvailable += 16; diff --git a/Tests/LibraryTests/Compression/ZlibStreamTest.cs b/Tests/LibraryTests/Compression/ZlibStreamTest.cs index 3d874e98..71338c5f 100644 --- a/Tests/LibraryTests/Compression/ZlibStreamTest.cs +++ b/Tests/LibraryTests/Compression/ZlibStreamTest.cs @@ -24,6 +24,7 @@ using System.IO.Compression; using System.Text; using DiscUtils.Compression; +using DiscUtils.Streams; using Xunit; namespace LibraryTests.Compression; diff --git a/Tests/LibraryTests/LibraryTests.csproj b/Tests/LibraryTests/LibraryTests.csproj index 1f1cb04a..defd2fbe 100644 --- a/Tests/LibraryTests/LibraryTests.csproj +++ b/Tests/LibraryTests/LibraryTests.csproj @@ -2,7 +2,7 @@ - net9.0 + net46;net48;net8.0;net9.0 portable LibraryTests LibraryTests