devaction.c (6f0e37b0) devaction.c (e18a32df)
1/*
2 * PROJECT: ReactOS Kernel
3 * LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
4 * PURPOSE: PnP manager device manipulation functions
5 * COPYRIGHT: Casper S. Hornstrup (chorns@users.sourceforge.net)
6 * 2007 Hervé Poussineau (hpoussin@reactos.org)
7 * 2014-2017 Thomas Faber (thomas.faber@reactos.org)
8 * 2020 Victor Perevertkin (victor.perevertkin@reactos.org)

--- 1065 unchanged lines hidden (view full) ---

1074 if (!NT_SUCCESS(Status))
1075 {
1076 /* Driver is not initialized, try to load it */
1077 Status = IopLoadServiceModule(&DeviceNode->ServiceName, &ModuleObject);
1078
1079 if (NT_SUCCESS(Status) || Status == STATUS_IMAGE_ALREADY_LOADED)
1080 {
1081 /* Initialize the driver */
1/*
2 * PROJECT: ReactOS Kernel
3 * LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
4 * PURPOSE: PnP manager device manipulation functions
5 * COPYRIGHT: Casper S. Hornstrup (chorns@users.sourceforge.net)
6 * 2007 Hervé Poussineau (hpoussin@reactos.org)
7 * 2014-2017 Thomas Faber (thomas.faber@reactos.org)
8 * 2020 Victor Perevertkin (victor.perevertkin@reactos.org)

--- 1065 unchanged lines hidden (view full) ---

1074 if (!NT_SUCCESS(Status))
1075 {
1076 /* Driver is not initialized, try to load it */
1077 Status = IopLoadServiceModule(&DeviceNode->ServiceName, &ModuleObject);
1078
1079 if (NT_SUCCESS(Status) || Status == STATUS_IMAGE_ALREADY_LOADED)
1080 {
1081 /* Initialize the driver */
1082 NTSTATUS driverEntryStatus;
1082 Status = IopInitializeDriverModule(ModuleObject,
1083 &DeviceNode->ServiceName,
1083 Status = IopInitializeDriverModule(ModuleObject,
1084 &DeviceNode->ServiceName,
1084 FALSE,
1085 &DriverObject);
1085 &DriverObject,
1086 &driverEntryStatus);
1086 if (!NT_SUCCESS(Status))
1087 DeviceNode->Problem = CM_PROB_FAILED_DRIVER_ENTRY;
1088 }
1089 else if (Status == STATUS_DRIVER_UNABLE_TO_LOAD)
1090 {
1091 DPRINT1("Service '%wZ' is disabled\n", &DeviceNode->ServiceName);
1092 DeviceNode->Problem = CM_PROB_DISABLED_SERVICE;
1093 }

--- 1489 unchanged lines hidden ---
1087 if (!NT_SUCCESS(Status))
1088 DeviceNode->Problem = CM_PROB_FAILED_DRIVER_ENTRY;
1089 }
1090 else if (Status == STATUS_DRIVER_UNABLE_TO_LOAD)
1091 {
1092 DPRINT1("Service '%wZ' is disabled\n", &DeviceNode->ServiceName);
1093 DeviceNode->Problem = CM_PROB_DISABLED_SERVICE;
1094 }

--- 1489 unchanged lines hidden ---