mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +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:
@@ -847,7 +847,7 @@ USBSTOR_SendFormatCapacity(
|
||||
//
|
||||
RtlZeroMemory(&Cmd, sizeof(UFI_READ_FORMAT_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.AllocationLengthLsb = HTONS(Request->DataTransferLength & 0xFFFF) & 0xFF;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user