Skip to content
Merged
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
5 changes: 4 additions & 1 deletion Runtime/Native/iOS/NativeClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,12 @@ public void GetAttributes(Dictionary<string, string> result)
}
GetNativeAttributes(out IntPtr pUnmanagedArray, out int keysCount);

// calculate struct size for current OS.
// We multiply by 2 because Entry struct has two pointers
var structSize = IntPtr.Size * 2;
for (int i = 0; i < keysCount; i++)
{
var address = pUnmanagedArray + i * 16;
var address = pUnmanagedArray + i * structSize;
Entry entry = Marshal.PtrToStructure<Entry>(address);
result.Add(entry.Key, entry.Value);
}
Expand Down