Seek, if possible

This commit is contained in:
Matt Nadareski
2025-10-27 22:43:56 -04:00
parent 15109bed88
commit ce394eb4e9
60 changed files with 271 additions and 257 deletions

View File

@@ -160,7 +160,7 @@ namespace InfoPrint.Features
// Read the first 8 bytes
byte[]? magic = stream.ReadBytes(8);
stream.Seek(0, SeekOrigin.Begin);
stream.SeekIfPossible(0, SeekOrigin.Begin);
// Get the file type
string extension = Path.GetExtension(file).TrimStart('.');