Author: hpoussin
Date: Sun Sep 14 07:51:40 2014
New Revision: 64139
URL:
http://svn.reactos.org/svn/reactos?rev=64139&view=rev
Log:
[RAMDISK] Remove support for IOCTL_CDROM_GET_LAST_SESSION (useless since r64106)
Modified:
trunk/reactos/drivers/storage/class/ramdisk/ramdisk.c
Modified: trunk/reactos/drivers/storage/class/ramdisk/ramdisk.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/class/ramd…
==============================================================================
--- trunk/reactos/drivers/storage/class/ramdisk/ramdisk.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/class/ramdisk/ramdisk.c [iso-8859-1] Sun Sep 14 07:51:40
2014
@@ -1522,47 +1522,6 @@
Information = sizeof(DISK_GEOMETRY);
break;
- //
- // Hack to support ReactOS's broken CDFS
- //
- case IOCTL_CDROM_GET_LAST_SESSION:
-
- //
- // Validate the length
- //
- if (IoStackLocation->Parameters.DeviceIoControl.
- OutputBufferLength < RAMDISK_SESSION_SIZE)
- {
- //
- // Invalid length
- //
- Status = STATUS_BUFFER_TOO_SMALL;
- break;
- }
-
- //
- // Fill out the TOC
- //
- Toc = Irp->AssociatedIrp.SystemBuffer;
- Toc->Length[0] = 0;
- Toc->Length[1] = RAMDISK_SESSION_SIZE - sizeof(Toc->Length);
- Toc->FirstTrack = 1;
- Toc->LastTrack = 1;
- Toc->TrackData[0].Adr = 1;
- Toc->TrackData[0].Control = TOC_DATA_TRACK;
- Toc->TrackData[0].TrackNumber = 1;
- Toc->TrackData[0].Address[0] =
- Toc->TrackData[0].Address[1] =
- Toc->TrackData[0].Address[2] =
- Toc->TrackData[0].Address[3] = 0;
-
- //
- // We're done
- //
- Status = STATUS_SUCCESS;
- Information = RAMDISK_SESSION_SIZE;
- break;
-
case IOCTL_CDROM_READ_TOC:
//