From bf7fa60dfc996e77f9afa02a8f7b3c819c86c792 Mon Sep 17 00:00:00 2001 From: Isaac Marovitz <42140194+IsaacMarovitz@users.noreply.github.com> Date: Tue, 6 Dec 2022 21:04:01 -0500 Subject: [PATCH] Fix struct layout packing (#4039) --- Ryujinx.Common/Memory/PartialUnmaps/NativeReaderWriterLock.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ryujinx.Common/Memory/PartialUnmaps/NativeReaderWriterLock.cs b/Ryujinx.Common/Memory/PartialUnmaps/NativeReaderWriterLock.cs index 5419b34052..78eeb16fb9 100644 --- a/Ryujinx.Common/Memory/PartialUnmaps/NativeReaderWriterLock.cs +++ b/Ryujinx.Common/Memory/PartialUnmaps/NativeReaderWriterLock.cs @@ -8,7 +8,7 @@ namespace Ryujinx.Common.Memory.PartialUnmaps /// /// A simple implementation of a ReaderWriterLock which can be used from native code. /// - [StructLayout(LayoutKind.Sequential, Pack = 1)] + [StructLayout(LayoutKind.Sequential, Pack = 4)] public struct NativeReaderWriterLock { public int WriteLock;