Fixed alignment errors when casting debug info types

This commit is contained in:
x1nixmzeng 2018-01-04 23:21:27 +00:00
parent 7c74ff70a3
commit 92d6635c4e
3 changed files with 4 additions and 11 deletions

View File

@ -11,7 +11,8 @@ namespace VsChromium.Core.Win32.Debugging {
public uint dwDebugInfoFileOffset; public uint dwDebugInfoFileOffset;
public uint nDebugInfoSize; public uint nDebugInfoSize;
public IntPtr lpThreadLocalBase; public IntPtr lpThreadLocalBase;
public PTHREAD_START_ROUTINE lpStartAddress; // x1nix: Alignment fix, as PTHREAD_START_ROUTINE is failing to Marshal
public IntPtr lpStartAddress;
public IntPtr lpImageName; public IntPtr lpImageName;
public ushort fUnicode; public ushort fUnicode;
} }

View File

@ -6,6 +6,7 @@ namespace VsChromium.Core.Win32.Debugging {
public struct CREATE_THREAD_DEBUG_INFO { public struct CREATE_THREAD_DEBUG_INFO {
public IntPtr hThread; public IntPtr hThread;
public IntPtr lpThreadLocalBase; public IntPtr lpThreadLocalBase;
public PTHREAD_START_ROUTINE lpStartAddress; // x1nix: Alignment fix, as PTHREAD_START_ROUTINE is failing to Marshal
public IntPtr lpStartAddress;
} }
} }

View File

@ -1,9 +0,0 @@
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
using System;
namespace VsChromium.Core.Win32.Debugging {
public delegate uint PTHREAD_START_ROUTINE(IntPtr lpThreadParameter);
}