Skip to content

Commit

Permalink
Fixed mistake from previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
LTRData committed Apr 5, 2024
1 parent 62b4253 commit 3f2a95e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Library/DiscUtils.Ntfs/SecurityDescriptor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public void WriteTo(Span<byte> buffer)
}
else
{
buffer.Slice(0x10).Clear();
buffer.Slice(0x10, sizeof(int)).Clear();
}

var sysAcl = Descriptor.SystemAcl;
Expand All @@ -88,7 +88,7 @@ public void WriteTo(Span<byte> buffer)
}
else
{
buffer.Slice(0x0C).Clear();
buffer.Slice(0x0C, sizeof(int)).Clear();
}

EndianUtilities.WriteBytesLittleEndian(pos, buffer.Slice(0x04));
Expand Down Expand Up @@ -163,4 +163,4 @@ private static RawAcl InheritAcl(RawAcl parentAcl, bool isContainer)

return newAcl;
}
}
}

0 comments on commit 3f2a95e

Please sign in to comment.