mirror of
https://github.com/reactos/reactos.git
synced 2024-07-31 00:28:56 +00:00
[NTOSKRNL]
- Fix device node flag corruption svn path=/trunk/; revision=55826
This commit is contained in:
parent
fc053ddc31
commit
8afc22a95d
|
@ -552,6 +552,9 @@ IopResetDevice(PPLUGPLAY_CONTROL_RESET_DEVICE_DATA ResetDeviceData)
|
||||||
/* Get the device node */
|
/* Get the device node */
|
||||||
DeviceNode = IopGetDeviceNode(DeviceObject);
|
DeviceNode = IopGetDeviceNode(DeviceObject);
|
||||||
|
|
||||||
|
ASSERT(DeviceNode->Flags & DNF_ENUMERATED);
|
||||||
|
ASSERT(DeviceNode->Flags & DNF_PROCESSED);
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
/* Remove the device node */
|
/* Remove the device node */
|
||||||
Status = IopRemoveDevice(DeviceNode);
|
Status = IopRemoveDevice(DeviceNode);
|
||||||
|
@ -563,9 +566,7 @@ IopResetDevice(PPLUGPLAY_CONTROL_RESET_DEVICE_DATA ResetDeviceData)
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
/* FIXME: We might clear some important flags */
|
/* FIXME: We might clear some important flags */
|
||||||
ASSERT(DeviceNode->Flags & DNF_ENUMERATED);
|
DeviceNode->Flags &= ~DNF_DISABLED;
|
||||||
ASSERT(DeviceNode->Flags & DNF_PROCESSED);
|
|
||||||
DeviceNode->Flags = DNF_ENUMERATED | DNF_PROCESSED;
|
|
||||||
|
|
||||||
/* Load service data from the registry */
|
/* Load service data from the registry */
|
||||||
Status = IopActionConfigureChildServices(DeviceNode, DeviceNode->Parent);
|
Status = IopActionConfigureChildServices(DeviceNode, DeviceNode->Parent);
|
||||||
|
|
Loading…
Reference in a new issue