mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 19:41:45 +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:
parent
1679d0bf4c
commit
7c3d94291e
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue