mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[NTOS:IO] Handle missing device instance in IopInitializeBuiltinDriver. CORE-18793
This commit is contained in:
parent
6c06760547
commit
543d390259
1 changed files with 10 additions and 3 deletions
|
@ -967,9 +967,16 @@ IopInitializeBuiltinDriver(IN PLDR_DATA_TABLE_ENTRY BootLdrEntry)
|
|||
instancePath.Buffer[instancePath.Length / sizeof(WCHAR)] = UNICODE_NULL;
|
||||
|
||||
PDEVICE_OBJECT pdo = IopGetDeviceObjectFromDeviceInstance(&instancePath);
|
||||
PiQueueDeviceAction(pdo, PiActionAddBootDevices, NULL, NULL);
|
||||
ObDereferenceObject(pdo);
|
||||
deviceAdded = TRUE;
|
||||
if (pdo != NULL)
|
||||
{
|
||||
PiQueueDeviceAction(pdo, PiActionAddBootDevices, NULL, NULL);
|
||||
ObDereferenceObject(pdo);
|
||||
deviceAdded = TRUE;
|
||||
}
|
||||
else
|
||||
{
|
||||
DPRINT1("No device node found matching instance path '%wZ'\n", &instancePath);
|
||||
}
|
||||
}
|
||||
|
||||
ExFreePool(kvInfo);
|
||||
|
|
Loading…
Reference in a new issue