mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00
[NTOSKRNL]
Don't attempt to free random address Don't attempt to free null address svn path=/trunk/; revision=54479
This commit is contained in:
parent
ef3f455441
commit
235d1c5a42
1 changed files with 2 additions and 4 deletions
|
@ -1245,7 +1245,7 @@ IopGetParentIdPrefix(PDEVICE_NODE DeviceNode,
|
||||||
{
|
{
|
||||||
ULONG KeyNameBufferLength;
|
ULONG KeyNameBufferLength;
|
||||||
PKEY_VALUE_PARTIAL_INFORMATION ParentIdPrefixInformation = NULL;
|
PKEY_VALUE_PARTIAL_INFORMATION ParentIdPrefixInformation = NULL;
|
||||||
UNICODE_STRING KeyName;
|
UNICODE_STRING KeyName = {0, 0, NULL};
|
||||||
UNICODE_STRING KeyValue;
|
UNICODE_STRING KeyValue;
|
||||||
UNICODE_STRING ValueName;
|
UNICODE_STRING ValueName;
|
||||||
HANDLE hKey = NULL;
|
HANDLE hKey = NULL;
|
||||||
|
@ -1267,11 +1267,9 @@ IopGetParentIdPrefix(PDEVICE_NODE DeviceNode,
|
||||||
ParentIdPrefixInformation = ExAllocatePool(PagedPool, KeyNameBufferLength + sizeof(WCHAR));
|
ParentIdPrefixInformation = ExAllocatePool(PagedPool, KeyNameBufferLength + sizeof(WCHAR));
|
||||||
if (!ParentIdPrefixInformation)
|
if (!ParentIdPrefixInformation)
|
||||||
{
|
{
|
||||||
Status = STATUS_INSUFFICIENT_RESOURCES;
|
return STATUS_INSUFFICIENT_RESOURCES;
|
||||||
goto cleanup;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
KeyName.Buffer = ExAllocatePool(PagedPool, (49 * sizeof(WCHAR)) + DeviceNode->Parent->InstancePath.Length);
|
KeyName.Buffer = ExAllocatePool(PagedPool, (49 * sizeof(WCHAR)) + DeviceNode->Parent->InstancePath.Length);
|
||||||
if (!KeyName.Buffer)
|
if (!KeyName.Buffer)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue