Ansible.Become - fix 32 bit incompatibility (#51094)

pull/52220/head
Jordan Borean 6 years ago committed by GitHub
parent 63f7536594
commit fa0ab82d21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -793,7 +793,7 @@ namespace Ansible.Become
using (sessionPtr) using (sessionPtr)
{ {
for (IntPtr p = sessionPtr.DangerousGetHandle(); for (IntPtr p = sessionPtr.DangerousGetHandle();
p != IntPtr.Add(sessionPtr.DangerousGetHandle(), (int)(IntPtr.Size * sessionCount)); p != IntPtr.Add(sessionPtr.DangerousGetHandle(), (int)(Marshal.SizeOf(typeof(NativeHelpers.LUID)) * sessionCount));
p = IntPtr.Add(p, Marshal.SizeOf(typeof(NativeHelpers.LUID)))) p = IntPtr.Add(p, Marshal.SizeOf(typeof(NativeHelpers.LUID))))
{ {
SafeLsaMemoryBuffer sessionDataPtr; SafeLsaMemoryBuffer sessionDataPtr;

Loading…
Cancel
Save