Update SmartArrayControllerTool.cpp
This commit is contained in:
parent
281fb7e2b8
commit
031b3a0dcf
@ -125,13 +125,13 @@ int wmain(int argc, wchar_t* argv[])
|
|||||||
SCSI_PASS_THROUGH_WITH_BUFFERS sptwb;
|
SCSI_PASS_THROUGH_WITH_BUFFERS sptwb;
|
||||||
|
|
||||||
BYTE cdb[] = { 0x12, 0x00, 0x00, 0x00, 0xFF, 0x00 }; // SCSI Inquiry CDB
|
BYTE cdb[] = { 0x12, 0x00, 0x00, 0x00, 0xFF, 0x00 }; // SCSI Inquiry CDB
|
||||||
|
|
||||||
ZeroMemory(&sptwb, sizeof(SCSI_PASS_THROUGH_WITH_BUFFERS));
|
ZeroMemory(&sptwb, sizeof(SCSI_PASS_THROUGH_WITH_BUFFERS));
|
||||||
sptwb.spt.Length = sizeof(SCSI_PASS_THROUGH);
|
sptwb.spt.Length = sizeof(SCSI_PASS_THROUGH);
|
||||||
sptwb.spt.PathId = 0;
|
sptwb.spt.PathId = 0;
|
||||||
sptwb.spt.TargetId = 0;
|
sptwb.spt.TargetId = 0;
|
||||||
sptwb.spt.Lun = 0;
|
sptwb.spt.Lun = 0;
|
||||||
sptwb.spt.CdbLength = ARRAYSIZE(cdb);
|
sptwb.spt.CdbLength = sizeof(cdb);
|
||||||
sptwb.spt.SenseInfoLength = SPT_SENSE_LENGTH;
|
sptwb.spt.SenseInfoLength = SPT_SENSE_LENGTH;
|
||||||
sptwb.spt.DataIn = SCSI_IOCTL_DATA_IN;
|
sptwb.spt.DataIn = SCSI_IOCTL_DATA_IN;
|
||||||
sptwb.spt.DataTransferLength = SPTWB_DATA_LENGTH;
|
sptwb.spt.DataTransferLength = SPTWB_DATA_LENGTH;
|
||||||
|
Loading…
Reference in New Issue
Block a user