ntdll: Fix raw CD-ROM access on Linux
Tobias Gruetzmacher
tobias at portfolio16.de
Wed Aug 3 17:13:41 CDT 2005
Hi,
after submitting my bugreport
http://bugs.winehq.com/show_bug.cgi?id=3175 I curefully checked the
transfer directions in dlls/ntdll/cdrom.c. I think, they are reversed at
two places.
The attached patch fixes my reported bug. This may also fix bug 3143.
Changelog
Reverse the direction of raw SCSI commands
-------------- next part --------------
Index: dlls/ntdll/cdrom.c
===================================================================
RCS file: /home/wine/wine/dlls/ntdll/cdrom.c,v
retrieving revision 1.65
diff -u -u -r1.65 cdrom.c
--- dlls/ntdll/cdrom.c 3 Aug 2005 10:55:12 -0000 1.65
+++ dlls/ntdll/cdrom.c 3 Aug 2005 22:04:54 -0000
@@ -1470,10 +1470,10 @@
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 @@
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;
More information about the wine-patches
mailing list