mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 21:44:31 +00:00
[NTOS:IO] Check RtlCreateUnicodeString return value when initializing PnP services
CORE-17637
This commit is contained in:
parent
24a4e12a76
commit
3f16c8615c
|
@ -435,8 +435,11 @@ IopInitializePlugPlayServices(VOID)
|
|||
DNF_IDS_QUERIED | DNF_NO_RESOURCE_REQUIRED;
|
||||
|
||||
/* Create instance path */
|
||||
RtlCreateUnicodeString(&IopRootDeviceNode->InstancePath,
|
||||
REGSTR_VAL_ROOT_DEVNODE);
|
||||
if (!RtlCreateUnicodeString(&IopRootDeviceNode->InstancePath, REGSTR_VAL_ROOT_DEVNODE))
|
||||
{
|
||||
DPRINT1("RtlCreateUnicodeString() failed\n");
|
||||
KeBugCheckEx(PHASE1_INITIALIZATION_FAILED, Status, 0, 0, 0);
|
||||
}
|
||||
|
||||
/* Call the add device routine */
|
||||
IopRootDriverObject->DriverExtension->AddDevice(IopRootDriverObject,
|
||||
|
|
Loading…
Reference in a new issue