From: Cameron Gutman Date: Wed, 25 Jan 2012 06:09:24 +0000 (+0000) Subject: [USBSTOR] X-Git-Tag: backups/usb-bringup-trunk@60667~156 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=75676e7e490764ec2e123be703f540be68f51b22 [USBSTOR] - Use the correct USBD_TRANSFER_DIRECTION value for write operations svn path=/branches/usb-bringup-trunk/; revision=55169 --- diff --git a/drivers/usb/usbstor/scsi.c b/drivers/usb/usbstor/scsi.c index 62c25dec959..5e80749521f 100644 --- a/drivers/usb/usbstor/scsi.c +++ b/drivers/usb/usbstor/scsi.c @@ -447,7 +447,7 @@ USBSTOR_CBWCompletionRoutine( NULL, Context->TransferBufferMDL, Context->TransferDataLength, - USBD_TRANSFER_DIRECTION_IN | USBD_SHORT_TRANSFER_OK, + ((Code == SCSIOP_WRITE) ? USBD_TRANSFER_DIRECTION_OUT : USBD_TRANSFER_DIRECTION_IN) | USBD_SHORT_TRANSFER_OK, NULL); //