File tree Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -1780,20 +1780,15 @@ public void Save(Stream stream)
1780
1780
{
1781
1781
Sector s = sectors [ i ] ;
1782
1782
1783
- if ( s == null )
1783
+ // Load source (unmodified) sectors
1784
+ // Here we have to ignore "Dirty flag" of
1785
+ // sectors because we are NOT modifying the source
1786
+ // in a differential way but ALL sectors need to be
1787
+ // persisted on the destination stream
1788
+ s ??= new Sector ( sSize , sourceStream )
1784
1789
{
1785
- // Load source (unmodified) sectors
1786
- // Here we have to ignore "Dirty flag" of
1787
- // sectors because we are NOT modifying the source
1788
- // in a differential way but ALL sectors need to be
1789
- // persisted on the destination stream
1790
- s = new Sector ( sSize , sourceStream )
1791
- {
1792
- Id = i
1793
- } ;
1794
-
1795
- //sectors[i] = s;
1796
- }
1790
+ Id = i
1791
+ } ;
1797
1792
1798
1793
stream . Write ( s . GetData ( ) , 0 , sSize ) ;
1799
1794
You can’t perform that action at this time.
0 commit comments