- Fix incorrect modification of device object flags

svn path=/trunk/; revision=53244
This commit is contained in:
Cameron Gutman 2011-08-15 00:08:47 +00:00
parent 9512185005
commit 34a7661185

View file

@ -84,7 +84,7 @@ HalpAddDevice(IN PDRIVER_OBJECT DriverObject,
FdoExtension->FunctionalDeviceObject = DeviceObject;
/* FDO is done initializing */
DeviceObject->Flags &= DO_DEVICE_INITIALIZING;
DeviceObject->Flags &= ~DO_DEVICE_INITIALIZING;
/* Attach to the physical device object (the bus) */
AttachedDevice = IoAttachDeviceToDeviceStack(DeviceObject, TargetDevice);
@ -126,14 +126,14 @@ HalpAddDevice(IN PDRIVER_OBJECT DriverObject,
if (!Wdrt)
{
/* None exists, there is nothing to do more */
PdoDeviceObject->Flags &= DO_DEVICE_INITIALIZING;
PdoDeviceObject->Flags &= ~DO_DEVICE_INITIALIZING;
FdoExtension->ChildPdoList = PdoExtension;
}
else
{
/* FIXME: TODO */
DPRINT1("You have an ACPI Watchdog. That's great! You should be proud ;-)\n");
PdoDeviceObject->Flags &= DO_DEVICE_INITIALIZING;
PdoDeviceObject->Flags &= ~DO_DEVICE_INITIALIZING;
FdoExtension->ChildPdoList = PdoExtension;
}