From 77882ddc8224840817da4e986d73dd1a008c9228 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Mercier?= Date: Sat, 4 Oct 2025 10:24:41 -0400 Subject: [PATCH] Fix nullref exception in ATAStorage (#1931) --- LibreHardwareMonitorLib/Hardware/Storage/WindowsSmart.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/LibreHardwareMonitorLib/Hardware/Storage/WindowsSmart.cs b/LibreHardwareMonitorLib/Hardware/Storage/WindowsSmart.cs index 4d8f034..b7e0f50 100644 --- a/LibreHardwareMonitorLib/Hardware/Storage/WindowsSmart.cs +++ b/LibreHardwareMonitorLib/Hardware/Storage/WindowsSmart.cs @@ -116,7 +116,8 @@ internal class WindowsSmart : ISmart } Marshal.FreeHGlobal(buffer); - return null; + + return []; } public unsafe SMART_THRESHOLD[] ReadSmartThresholds()