File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ public partial class StreamedXvdFile : IDisposable
3838 private string [ ] _segmentPaths ;
3939
4040 private bool _hasPartitionFiles ;
41- private ( string Path , ulong Size ) [ ] _partitionFileEntries ;
41+ private ( string Path , ulong Size ) [ ] _partitionFileEntries = [ ] ;
4242
4343 // XVD header extracted infos
4444 private bool _isXvc ;
@@ -107,7 +107,7 @@ public void Parse()
107107 ParseXvcInfo ( ) ;
108108 }
109109
110- if ( ! _hasSegmentMetadata && _header . Type == XvdType . Fixed && OperatingSystem . IsWindows ( ) )
110+ if ( ! _hasSegmentMetadata && _header . Type == XvdType . Fixed )
111111 {
112112 ParseNtfsPartition ( ) ;
113113 }
@@ -240,12 +240,6 @@ private void ParseXvcInfo()
240240
241241 private void ParseNtfsPartition ( )
242242 {
243- if ( ! OperatingSystem . IsWindows ( ) )
244- {
245- ConsoleLogger . WriteInfoLine ( "Skipping GPT/MBR partition parsing due to not running on Windows." ) ;
246- return ;
247- }
248-
249243 var driveSize = checked ( ( long ) _header . DriveSize ) ;
250244
251245 using var fsStream =
Original file line number Diff line number Diff line change 99 </PropertyGroup >
1010
1111 <ItemGroup >
12- <PackageReference Include =" DiscUtils.Ntfs" Version =" 0.16.13" />
1312 <PackageReference Include =" DotNext.Unsafe" Version =" 4.13.1" />
13+ <PackageReference Include =" LTRData.DiscUtils.Ntfs" Version =" 1.0.40" />
1414 <PackageReference Include =" Spectre.Console.Cli" Version =" 0.47.1-preview.0.11" />
1515 </ItemGroup >
1616
You can’t perform that action at this time.
0 commit comments