mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[NTOS:IO] Check RtlCreateUnicodeString return value when initializing PnP services
CORE-17637
This commit is contained in:
committed by
Jérôme Gardou
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,
|
||||
|
||||
Reference in New Issue
Block a user