mirror of
https://github.com/reactos/reactos.git
synced 2025-07-24 15:13:36 +00:00
- Correctly set DN_DRIVER_LOADED flag.
- This fixes "i8042prt/kbdclass.sys get installed one more time at each boot". See issue #2330 for more details. svn path=/trunk/; revision=27385
This commit is contained in:
parent
4d91599bd6
commit
122331f605
2 changed files with 16 additions and 12 deletions
|
@ -1645,6 +1645,9 @@ NtLoadDriver(IN PUNICODE_STRING DriverServiceName)
|
||||||
goto ReleaseCapturedString;
|
goto ReleaseCapturedString;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* We have a driver for this DeviceNode */
|
||||||
|
DeviceNode->Flags |= DN_DRIVER_LOADED;
|
||||||
}
|
}
|
||||||
|
|
||||||
IopInitializeDevice(DeviceNode, DriverObject);
|
IopInitializeDevice(DeviceNode, DriverObject);
|
||||||
|
|
|
@ -2389,7 +2389,6 @@ IopActionInitChildServices(PDEVICE_NODE DeviceNode,
|
||||||
if (Status != STATUS_IMAGE_ALREADY_LOADED)
|
if (Status != STATUS_IMAGE_ALREADY_LOADED)
|
||||||
{
|
{
|
||||||
/* Initialize the driver */
|
/* Initialize the driver */
|
||||||
DeviceNode->Flags |= DN_DRIVER_LOADED;
|
|
||||||
Status = IopInitializeDriverModule(DeviceNode, ModuleObject,
|
Status = IopInitializeDriverModule(DeviceNode, ModuleObject,
|
||||||
&DeviceNode->ServiceName, FALSE, &DriverObject);
|
&DeviceNode->ServiceName, FALSE, &DriverObject);
|
||||||
}
|
}
|
||||||
|
@ -2403,6 +2402,8 @@ IopActionInitChildServices(PDEVICE_NODE DeviceNode,
|
||||||
/* Driver is loaded and initialized at this point */
|
/* Driver is loaded and initialized at this point */
|
||||||
if (NT_SUCCESS(Status))
|
if (NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
|
/* We have a driver for this DeviceNode */
|
||||||
|
DeviceNode->Flags |= DN_DRIVER_LOADED;
|
||||||
/* Attach lower level filter drivers. */
|
/* Attach lower level filter drivers. */
|
||||||
IopAttachFilterDrivers(DeviceNode, TRUE);
|
IopAttachFilterDrivers(DeviceNode, TRUE);
|
||||||
/* Initialize the function driver for the device node */
|
/* Initialize the function driver for the device node */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue