[RAMDISK] Remove support for IOCTL_CDROM_GET_LAST_SESSION (useless since r64106)
authorHervé Poussineau <hpoussin@reactos.org>
Sun, 14 Sep 2014 07:51:40 +0000 (07:51 +0000)
committerHervé Poussineau <hpoussin@reactos.org>
Sun, 14 Sep 2014 07:51:40 +0000 (07:51 +0000)
svn path=/trunk/; revision=64139

reactos/drivers/storage/class/ramdisk/ramdisk.c

index 7b70972..1b2b223 100644 (file)
@@ -1522,47 +1522,6 @@ RamdiskDeviceControl(IN PDEVICE_OBJECT DeviceObject,
                 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:
                 
                 //