[NTOS:IO] Queue device tree enumeration inside IoReportDetectedDevice

Without that, a DeviceNode is not created for a reported device and thus
it is not being attached to the device tree

CORE-17132
This commit is contained in:
Victor Perevertkin 2020-08-21 08:53:33 +03:00
parent dc1d717b22
commit 162d614cc1
No known key found for this signature in database
GPG key ID: C750B7222E9C7830

View file

@ -395,6 +395,8 @@ IoReportDetectedDevice(IN PDRIVER_OBJECT DriverObject,
DPRINT("Reported device: %S (%wZ)\n", HardwareId, &DeviceNode->InstancePath);
PiQueueDeviceAction(Pdo, PiActionEnumDeviceTree, NULL, NULL);
/* Return the PDO */
if (DeviceObject) *DeviceObject = Pdo;