1
0

Update SmartArrayControllerTool.cpp

This commit is contained in:
Benjamin Höglinger-Stelzer 2023-06-26 10:44:30 +02:00
parent 281fb7e2b8
commit 031b3a0dcf

View File

@ -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;