mirror of
https://github.com/reactos/reactos.git
synced 2025-05-20 17:45:06 +00:00
[NTOS:PNP] Reduce the size of the pool buffer in IopGetParentIdPrefix. CORE-15882
This commit is contained in:
parent
2f1fab41fa
commit
5706f6e9f4
1 changed files with 1 additions and 1 deletions
|
@ -1853,7 +1853,7 @@ IopGetParentIdPrefix(PDEVICE_NODE DeviceNode,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 1. Try to retrieve ParentIdPrefix from registry */
|
/* 1. Try to retrieve ParentIdPrefix from registry */
|
||||||
KeyNameBufferLength = FIELD_OFFSET(KEY_VALUE_PARTIAL_INFORMATION, Data[0]) + MAX_PATH * sizeof(WCHAR);
|
KeyNameBufferLength = FIELD_OFFSET(KEY_VALUE_PARTIAL_INFORMATION, Data) + sizeof(L"12345678&12345678");
|
||||||
ParentIdPrefixInformation = ExAllocatePoolWithTag(PagedPool,
|
ParentIdPrefixInformation = ExAllocatePoolWithTag(PagedPool,
|
||||||
KeyNameBufferLength + sizeof(UNICODE_NULL),
|
KeyNameBufferLength + sizeof(UNICODE_NULL),
|
||||||
TAG_IO);
|
TAG_IO);
|
||||||
|
|
Loading…
Reference in a new issue