From aaca3a009e8ae539b3c51ae9c671b505577d9b7c Mon Sep 17 00:00:00 2001 From: praydog Date: Thu, 8 Feb 2024 07:31:22 -0800 Subject: [PATCH] UEVRSharedMemory: Switch to Unicode characters instead Requires backend update --- UEVR/UEVRSharedMemory.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UEVR/UEVRSharedMemory.cs b/UEVR/UEVRSharedMemory.cs index 7e00d89..0158971 100644 --- a/UEVR/UEVRSharedMemory.cs +++ b/UEVR/UEVRSharedMemory.cs @@ -15,7 +15,7 @@ class SharedMemory { [DllImport("user32.dll", SetLastError = true)] public static extern bool PostThreadMessage(uint threadId, uint msg, IntPtr wParam, IntPtr lParam); - [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)] + [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode, Pack = 1)] public struct Data { [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 260)] public string path;