From 031b3a0dcf402cc7e8479c0e9728c8e4a8653d0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20H=C3=B6glinger-Stelzer?= Date: Mon, 26 Jun 2023 10:44:30 +0200 Subject: [PATCH] Update SmartArrayControllerTool.cpp --- src/SmartArrayControllerTool.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SmartArrayControllerTool.cpp b/src/SmartArrayControllerTool.cpp index 462c3e0..8b91f17 100644 --- a/src/SmartArrayControllerTool.cpp +++ b/src/SmartArrayControllerTool.cpp @@ -125,13 +125,13 @@ int wmain(int argc, wchar_t* argv[]) SCSI_PASS_THROUGH_WITH_BUFFERS sptwb; BYTE cdb[] = { 0x12, 0x00, 0x00, 0x00, 0xFF, 0x00 }; // SCSI Inquiry CDB - + ZeroMemory(&sptwb, sizeof(SCSI_PASS_THROUGH_WITH_BUFFERS)); sptwb.spt.Length = sizeof(SCSI_PASS_THROUGH); sptwb.spt.PathId = 0; sptwb.spt.TargetId = 0; sptwb.spt.Lun = 0; - sptwb.spt.CdbLength = ARRAYSIZE(cdb); + sptwb.spt.CdbLength = sizeof(cdb); sptwb.spt.SenseInfoLength = SPT_SENSE_LENGTH; sptwb.spt.DataIn = SCSI_IOCTL_DATA_IN; sptwb.spt.DataTransferLength = SPTWB_DATA_LENGTH;