From 3f2a95e8d58062757ebaff8bc199af36d54c5b17 Mon Sep 17 00:00:00 2001 From: LTRData Date: Fri, 5 Apr 2024 02:40:28 +0200 Subject: [PATCH] Fixed mistake from previous commit --- Library/DiscUtils.Ntfs/SecurityDescriptor.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/DiscUtils.Ntfs/SecurityDescriptor.cs b/Library/DiscUtils.Ntfs/SecurityDescriptor.cs index 8d4175d46..5fbce48d9 100644 --- a/Library/DiscUtils.Ntfs/SecurityDescriptor.cs +++ b/Library/DiscUtils.Ntfs/SecurityDescriptor.cs @@ -76,7 +76,7 @@ public void WriteTo(Span buffer) } else { - buffer.Slice(0x10).Clear(); + buffer.Slice(0x10, sizeof(int)).Clear(); } var sysAcl = Descriptor.SystemAcl; @@ -88,7 +88,7 @@ public void WriteTo(Span buffer) } else { - buffer.Slice(0x0C).Clear(); + buffer.Slice(0x0C, sizeof(int)).Clear(); } EndianUtilities.WriteBytesLittleEndian(pos, buffer.Slice(0x04)); @@ -163,4 +163,4 @@ private static RawAcl InheritAcl(RawAcl parentAcl, bool isContainer) return newAcl; } -} \ No newline at end of file +}