Commit cdd75bd4 authored by Tobias Gruetzmacher's avatar Tobias Gruetzmacher Committed by Alexandre Julliard

Reverse the direction of raw SCSI commands.

parent 91358d76
......@@ -1470,10 +1470,10 @@ static NTSTATUS CDROM_ScsiPassThroughDirect(int fd, PSCSI_PASS_THROUGH_DIRECT pP
switch (pPacket->DataIn)
{
case SCSI_IOCTL_DATA_IN:
cmd.dxfer_direction = SG_DXFER_TO_DEV;
cmd.dxfer_direction = SG_DXFER_FROM_DEV;
break;
case SCSI_IOCTL_DATA_OUT:
cmd.dxfer_direction = SG_DXFER_FROM_DEV;
cmd.dxfer_direction = SG_DXFER_TO_DEV;
break;
case SCSI_IOCTL_DATA_UNSPECIFIED:
cmd.dxfer_direction = SG_DXFER_NONE;
......@@ -1593,10 +1593,10 @@ static NTSTATUS CDROM_ScsiPassThrough(int fd, PSCSI_PASS_THROUGH pPacket)
switch (pPacket->DataIn)
{
case SCSI_IOCTL_DATA_IN:
cmd.dxfer_direction = SG_DXFER_TO_DEV;
cmd.dxfer_direction = SG_DXFER_FROM_DEV;
break;
case SCSI_IOCTL_DATA_OUT:
cmd.dxfer_direction = SG_DXFER_FROM_DEV;
cmd.dxfer_direction = SG_DXFER_TO_DEV;
break;
case SCSI_IOCTL_DATA_UNSPECIFIED:
cmd.dxfer_direction = SG_DXFER_NONE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment