mirror of
https://github.com/reactos/reactos.git
synced 2025-06-27 17:29:44 +00:00
[USBSTOR]
- Fix corruption of SCSI read format capacity by writing the LUN to the wrong location svn path=/trunk/; revision=55867
This commit is contained in:
parent
3db7e1b78c
commit
aeac841aa8
1 changed files with 1 additions and 1 deletions
|
@ -847,7 +847,7 @@ USBSTOR_SendFormatCapacity(
|
||||||
//
|
//
|
||||||
RtlZeroMemory(&Cmd, sizeof(UFI_READ_FORMAT_CAPACITY));
|
RtlZeroMemory(&Cmd, sizeof(UFI_READ_FORMAT_CAPACITY));
|
||||||
Cmd.Code = SCSIOP_READ_FORMATTED_CAPACITY;
|
Cmd.Code = SCSIOP_READ_FORMATTED_CAPACITY;
|
||||||
Cmd.LUN = (PDODeviceExtension->LUN & MAX_LUN) << 5;
|
Cmd.LUN = (PDODeviceExtension->LUN & MAX_LUN);
|
||||||
Cmd.AllocationLengthMsb = HTONS(Request->DataTransferLength & 0xFFFF) >> 8;
|
Cmd.AllocationLengthMsb = HTONS(Request->DataTransferLength & 0xFFFF) >> 8;
|
||||||
Cmd.AllocationLengthLsb = HTONS(Request->DataTransferLength & 0xFFFF) & 0xFF;
|
Cmd.AllocationLengthLsb = HTONS(Request->DataTransferLength & 0xFFFF) & 0xFF;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue