Author: hpoussin
Date: Wed Mar 21 21:13:32 2007
New Revision: 26150
URL:
http://svn.reactos.org/svn/reactos?rev=26150&view=rev
Log:
Clear DO_DEVICE_INITIALIZING flag when device is initialized.
See issue #1790 for more details.
Modified:
trunk/reactos/drivers/storage/cdrom/cdrom.c
trunk/reactos/drivers/storage/disk/disk.c
Modified: trunk/reactos/drivers/storage/cdrom/cdrom.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/cdrom/cdro…
==============================================================================
--- trunk/reactos/drivers/storage/cdrom/cdrom.c (original)
+++ trunk/reactos/drivers/storage/cdrom/cdrom.c Wed Mar 21 21:13:32 2007
@@ -16,8 +16,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id$
- *
+/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* FILE: services/storage/cdrom/cdrom.c
@@ -924,6 +923,8 @@
CdromTimerRoutine,
NULL);
IoStartTimer(DiskDeviceObject);
+
+ DiskDeviceObject->Flags &= ~DO_DEVICE_INITIALIZING;
DPRINT("CdromClassCreateDeviceObjects() done\n");
Modified: trunk/reactos/drivers/storage/disk/disk.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/disk/disk.…
==============================================================================
--- trunk/reactos/drivers/storage/disk/disk.c (original)
+++ trunk/reactos/drivers/storage/disk/disk.c Wed Mar 21 21:13:32 2007
@@ -919,6 +919,8 @@
if (PartitionList != NULL)
ExFreePool(PartitionList);
+ DiskDeviceObject->Flags &= ~DO_DEVICE_INITIALIZING;
+
DPRINT("DiskClassCreateDeviceObjects() done\n");
return(STATUS_SUCCESS);
@@ -2056,6 +2058,8 @@
DiskData->NextPartition = DeviceExtension;
DiskData = (PDISK_DATA)(DeviceExtension + 1);
DiskData->NextPartition = NULL;
+
+ DeviceObject->Flags &= ~DO_DEVICE_INITIALIZING;
}
else
{