mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +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 */
|
||||
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,
|
||||
KeyNameBufferLength + sizeof(UNICODE_NULL),
|
||||
TAG_IO);
|
||||
|
|
Loading…
Reference in a new issue