소스 검색

Fix struct layout packing (#4039)

Isaac Marovitz 3 년 전
부모
커밋
bf7fa60dfc
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Ryujinx.Common/Memory/PartialUnmaps/NativeReaderWriterLock.cs

+ 1 - 1
Ryujinx.Common/Memory/PartialUnmaps/NativeReaderWriterLock.cs

@@ -8,7 +8,7 @@ namespace Ryujinx.Common.Memory.PartialUnmaps
     /// <summary>
     /// A simple implementation of a ReaderWriterLock which can be used from native code.
     /// </summary>
-    [StructLayout(LayoutKind.Sequential, Pack = 1)]
+    [StructLayout(LayoutKind.Sequential, Pack = 4)]
     public struct NativeReaderWriterLock
     {
         public int WriteLock;