From aeac841aa8500704edf2bc05ccf79208b36bcc95 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 25 Feb 2012 21:18:17 +0000 Subject: [PATCH] [USBSTOR] - Fix corruption of SCSI read format capacity by writing the LUN to the wrong location svn path=/trunk/; revision=55867 --- reactos/drivers/usb/usbstor/scsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/drivers/usb/usbstor/scsi.c b/reactos/drivers/usb/usbstor/scsi.c index 23e7964d091..154b0ed4afc 100644 --- a/reactos/drivers/usb/usbstor/scsi.c +++ b/reactos/drivers/usb/usbstor/scsi.c @@ -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;