Skip to content

Commit d7a8764

Browse files
committed
CSHARP-1557: Code review changes.
1 parent dfdc5c2 commit d7a8764

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MongoDB.Driver.Core/Core/Authentication/Sspi/SecurityBufferDescriptor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public SecurityBufferDescriptor(SecurityBuffer[] buffers)
6565

6666
//Allocate memory for SecBuffer Array....
6767
#if NETSTANDARD1_6
68-
BufferPtr = Marshal.AllocHGlobal(Marshal.SizeOf< SecurityBuffer>() * NumBuffers);
68+
BufferPtr = Marshal.AllocHGlobal(Marshal.SizeOf<SecurityBuffer>() * NumBuffers);
6969
#else
7070
BufferPtr = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(SecurityBuffer)) * NumBuffers);
7171
#endif
@@ -150,7 +150,7 @@ public byte[] ToByteArray()
150150
if (NumBuffers == 1)
151151
{
152152
#if NETSTANDARD1_6
153-
var buffer = Marshal.PtrToStructure< SecurityBuffer>(BufferPtr);
153+
var buffer = Marshal.PtrToStructure<SecurityBuffer>(BufferPtr);
154154
#else
155155
var buffer = (SecurityBuffer)Marshal.PtrToStructure(BufferPtr, typeof(SecurityBuffer));
156156
#endif

0 commit comments

Comments
 (0)