mirror of
https://github.com/reactos/reactos.git
synced 2025-06-04 08:50:27 +00:00
[USBSTOR]
- Set the correct transfer direction value in the CBW - Fixes the infamous system hang that occurred when writing to a USB drive svn path=/branches/usb-bringup-trunk/; revision=55223
This commit is contained in:
parent
38758cfacb
commit
bc7a50b969
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ USBSTOR_BuildCBW(
|
|||
Control->Signature = CBW_SIGNATURE;
|
||||
Control->Tag = Tag;
|
||||
Control->DataTransferLength = DataTransferLength;
|
||||
Control->Flags = 0x80;
|
||||
Control->Flags = (CommandBlock[0] != SCSIOP_WRITE) ? 0x80 : 0x00;
|
||||
Control->LUN = (LUN & MAX_LUN);
|
||||
Control->CommandBlockLength = CommandBlockLength;
|
||||
|
||||
|
|
Loading…
Reference in a new issue