mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
- It may happen so, that the driver was loaded by the bootloader, but failed initialization (thus DriverObject == NULL), and later PNP manager tries to install it again, and BSOD due to NULL DriverObject (because really only its image is loaded, but it's not initialized). Prevent this situation by initializing DriverObject in that case.
svn path=/trunk/; revision=30071
This commit is contained in:
@@ -2516,7 +2516,8 @@ IopActionInitChildServices(PDEVICE_NODE DeviceNode,
|
||||
{
|
||||
/* STATUS_IMAGE_ALREADY_LOADED means this driver
|
||||
was loaded by the bootloader */
|
||||
if (Status != STATUS_IMAGE_ALREADY_LOADED)
|
||||
if ((Status != STATUS_IMAGE_ALREADY_LOADED) ||
|
||||
(Status == STATUS_IMAGE_ALREADY_LOADED && !DriverObject))
|
||||
{
|
||||
/* Initialize the driver */
|
||||
Status = IopInitializeDriverModule(DeviceNode, ModuleObject,
|
||||
|
||||
Reference in New Issue
Block a user