aboutsummaryrefslogtreecommitdiff
path: root/ARMeilleure/Translation/Cache/JitUnwindWindows.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ARMeilleure/Translation/Cache/JitUnwindWindows.cs')
-rw-r--r--ARMeilleure/Translation/Cache/JitUnwindWindows.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/ARMeilleure/Translation/Cache/JitUnwindWindows.cs b/ARMeilleure/Translation/Cache/JitUnwindWindows.cs
index 072c0f51..77727bf1 100644
--- a/ARMeilleure/Translation/Cache/JitUnwindWindows.cs
+++ b/ARMeilleure/Translation/Cache/JitUnwindWindows.cs
@@ -7,7 +7,7 @@ using System.Runtime.InteropServices;
namespace ARMeilleure.Translation.Cache
{
- static class JitUnwindWindows
+ static partial class JitUnwindWindows
{
private const int MaxUnwindCodesArraySize = 32; // Must be an even value.
@@ -42,14 +42,15 @@ namespace ARMeilleure.Translation.Cache
private unsafe delegate RuntimeFunction* GetRuntimeFunctionCallback(ulong controlPc, IntPtr context);
- [DllImport("kernel32.dll", CharSet = CharSet.Unicode)]
- private static unsafe extern bool RtlInstallFunctionTableCallback(
+ [LibraryImport("kernel32.dll")]
+ [return: MarshalAs(UnmanagedType.Bool)]
+ private static unsafe partial bool RtlInstallFunctionTableCallback(
ulong tableIdentifier,
ulong baseAddress,
uint length,
GetRuntimeFunctionCallback callback,
IntPtr context,
- string outOfProcessCallbackDll);
+ [MarshalAs(UnmanagedType.LPWStr)] string outOfProcessCallbackDll);
private static GetRuntimeFunctionCallback _getRuntimeFunctionCallback;