Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/libraries/Common/src/Interop/Interop.Ldap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ public void Free() {}
}
}
#else
public static readonly unsafe int Size = Marshal.SizeOf<LdapReferralCallback>();
public static readonly unsafe int Size = sizeof(LdapReferralCallback);
#endif
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static unsafe void InitializeReferencedDomainsList(this SafeLsaMemoryHand
// We don't know the real size of the referenced domains yet, so we need to set an initial
// size based on the LSA_REFERENCED_DOMAIN_LIST structure, then resize it to include all of
// the domains.
referencedDomains.Initialize((uint)Marshal.SizeOf<Interop.LSA_REFERENCED_DOMAIN_LIST>());
referencedDomains.Initialize((ulong)sizeof(Interop.LSA_REFERENCED_DOMAIN_LIST));
Interop.LSA_REFERENCED_DOMAIN_LIST domainList = referencedDomains.Read<Interop.LSA_REFERENCED_DOMAIN_LIST>(0);

byte* pRdl = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ internal static int SaslInteractionProcedure(IntPtr ldapHandle, uint flags, IntP

// Move to next interact challenge
Marshal.StructureToPtr(interactChallenge, currentInteractPtr, false);
currentInteractPtr = IntPtr.Add(currentInteractPtr, Marshal.SizeOf<SaslInteractiveChallenge>());
currentInteractPtr = IntPtr.Add(currentInteractPtr, sizeof(SaslInteractiveChallenge));
interactChallenge = Marshal.PtrToStructure<SaslInteractiveChallenge>(currentInteractPtr);
}

Expand Down