mirror of
https://github.com/reactos/reactos.git
synced 2024-07-01 10:20:03 +00:00
[NTOS:IO] Do not ignore RtlDuplicateUnicodeString return value
CORE-17637
This commit is contained in:
parent
cf1a95a588
commit
838abc475c
|
@ -1396,6 +1396,14 @@ IopSetServiceEnumData(
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Status = RtlDuplicateUnicodeString(RTL_DUPLICATE_UNICODE_STRING_ALLOCATE_NULL_STRING,
|
||||||
|
&ServiceName,
|
||||||
|
&DeviceNode->ServiceName);
|
||||||
|
if (!NT_SUCCESS(Status))
|
||||||
|
{
|
||||||
|
goto done;
|
||||||
|
}
|
||||||
|
|
||||||
RtlInitUnicodeString(&EnumKeyName, L"Enum");
|
RtlInitUnicodeString(&EnumKeyName, L"Enum");
|
||||||
Status = IopCreateRegistryKeyEx(&ServiceEnumKey,
|
Status = IopCreateRegistryKeyEx(&ServiceEnumKey,
|
||||||
ServiceKey,
|
ServiceKey,
|
||||||
|
@ -1480,10 +1488,6 @@ IopSetServiceEnumData(
|
||||||
sizeof(NextInstance));
|
sizeof(NextInstance));
|
||||||
}
|
}
|
||||||
|
|
||||||
RtlDuplicateUnicodeString(RTL_DUPLICATE_UNICODE_STRING_ALLOCATE_NULL_STRING,
|
|
||||||
&ServiceName,
|
|
||||||
&DeviceNode->ServiceName);
|
|
||||||
|
|
||||||
done:
|
done:
|
||||||
if (ServiceEnumKey != NULL)
|
if (ServiceEnumKey != NULL)
|
||||||
ZwClose(ServiceEnumKey);
|
ZwClose(ServiceEnumKey);
|
||||||
|
|
Loading…
Reference in a new issue