From 4c4ea8e7ae05da98d431fae99ea5b5cc03a378b8 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Wed, 15 Sep 2021 23:36:06 +0100 Subject: [PATCH] Change buffer size in Windows when talking to ATA devices. --- Aaru.Devices/Windows/Structs.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Aaru.Devices/Windows/Structs.cs b/Aaru.Devices/Windows/Structs.cs index 82a6f13f6..5fc244b19 100644 --- a/Aaru.Devices/Windows/Structs.cs +++ b/Aaru.Devices/Windows/Structs.cs @@ -114,7 +114,7 @@ namespace Aaru.Devices.Windows public AtaPassThroughEx aptd; public uint filler; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 256 * 512)] + [MarshalAs(UnmanagedType.ByValArray, SizeConst = 64 * 512)] public byte[] dataBuffer; }