diff --git a/XvdTool.Streaming/StreamedXvdFile.cs b/XvdTool.Streaming/StreamedXvdFile.cs index f9d244e..2132320 100644 --- a/XvdTool.Streaming/StreamedXvdFile.cs +++ b/XvdTool.Streaming/StreamedXvdFile.cs @@ -146,12 +146,12 @@ private void ParseUserData() using var userDataReader = new BinaryReader(new MemoryStream(userData)); _userDataHeader = userDataReader.ReadStruct(); - _hasUserData = true; - - userDataReader.BaseStream.Position = _userDataHeader.Length; - if (_userDataHeader.Type == XvdUserDataType.PackageFiles) { + _hasUserData = true; + + userDataReader.BaseStream.Position = _userDataHeader.Length; + _userDataPackageFilesHeader = userDataReader.ReadStruct(); Debug.Assert(int.MaxValue > _userDataPackageFilesHeader.FileCount, "int.MaxValue > _userDataPackageFilesHeader.FileCount");