From 20b7394e965dce104ea23bbe68e471f7acb6eb13 Mon Sep 17 00:00:00 2001 From: Iksas Date: Thu, 28 Mar 2024 19:34:52 +0100 Subject: [PATCH] fix heap corruption caused by incorrect pointer size in calls to Ftd2xx.dll (#1302) --- LibreHardwareMonitorLib/Interop/Ftd2xx.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LibreHardwareMonitorLib/Interop/Ftd2xx.cs b/LibreHardwareMonitorLib/Interop/Ftd2xx.cs index e3c3bed..67213d7 100644 --- a/LibreHardwareMonitorLib/Interop/Ftd2xx.cs +++ b/LibreHardwareMonitorLib/Interop/Ftd2xx.cs @@ -161,7 +161,7 @@ internal static class Ftd2xx [StructLayout(LayoutKind.Sequential)] internal struct FT_HANDLE { - private readonly uint _handle; + private readonly IntPtr _handle; } [StructLayout(LayoutKind.Sequential)]