[CDFS_NEW] Bugfix for f88fe43: don't delete devices twice on shutdown.

With that bugfix, I can install ROS from ISO on HDD without troubles :-)
CORE-13184
This commit is contained in:
Pierre Schweitzer 2017-11-12 18:57:11 +01:00
parent cda5d7c843
commit cbf0430b56
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B

View file

@ -241,10 +241,16 @@ Return Value:
--*/
{
IoUnregisterFileSystem (DeviceObject);
IoDeleteDevice (CdData.FileSystemDeviceObject);
#ifdef __REACTOS__
IoDeleteDevice (CdData.HddFileSystemDeviceObject);
ASSERT(DeviceObject == CdData.FileSystemDeviceObject ||
DeviceObject == CdData.HddFileSystemDeviceObject);
#endif
IoUnregisterFileSystem (DeviceObject);
#ifndef __REACTOS__
IoDeleteDevice (CdData.FileSystemDeviceObject);
#else
IoDeleteDevice (DeviceObject);
#endif
CdCompleteRequest( NULL, Irp, STATUS_SUCCESS );