ATA pass through needs buffer position to be relative to structure so use accordingly.

This commit is contained in:
2017-09-07 16:48:25 +01:00
parent 8cc805f031
commit 95e0d3f596
3 changed files with 135 additions and 103 deletions

View File

@@ -66,9 +66,9 @@ namespace DiscImageChef.Devices.Windows
internal static extern bool DeviceIoControlAta(
SafeFileHandle hDevice,
WindowsIoctl IoControlCode,
ref AtaPassThroughDirect InBuffer,
ref AtaPassThroughDirectWithBuffer InBuffer,
uint nInBufferSize,
ref AtaPassThroughDirect OutBuffer,
ref AtaPassThroughDirectWithBuffer OutBuffer,
uint nOutBufferSize,
ref uint pBytesReturned,
IntPtr Overlapped