diff --git a/src/dotnet/Interop.cs b/src/dotnet/Interop.cs index 01e5f4e1..950dbe5a 100644 --- a/src/dotnet/Interop.cs +++ b/src/dotnet/Interop.cs @@ -904,17 +904,17 @@ namespace Fsp.Interop Byte[] ModificationDescriptorBytes) { fixed (Byte *S = SecurityDescriptorBytes) - fixed (Byte *M = ModificationDescriptorBytes) - { - IntPtr SecurityDescriptor; - Int32 Result = FspSetSecurityDescriptor( - (IntPtr)S, SecurityInformation, (IntPtr)M, out SecurityDescriptor); - if (0 > Result) - return null; - SecurityDescriptorBytes = MakeSecurityDescriptor(SecurityDescriptor); - FspDeleteSecurityDescriptor(SecurityDescriptor, _FspSetSecurityDescriptorPtr); - return SecurityDescriptorBytes; - } + fixed (Byte *M = ModificationDescriptorBytes) + { + IntPtr SecurityDescriptor; + Int32 Result = FspSetSecurityDescriptor( + (IntPtr)S, SecurityInformation, (IntPtr)M, out SecurityDescriptor); + if (0 > Result) + return null; + SecurityDescriptorBytes = MakeSecurityDescriptor(SecurityDescriptor); + FspDeleteSecurityDescriptor(SecurityDescriptor, _FspSetSecurityDescriptorPtr); + return SecurityDescriptorBytes; + } } internal unsafe static Int32 CopyReparsePoint(