mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00
[NTOS:SE] Allocate pool memory for security descriptor based on the caller pool type request
We're indiscriminately allocate the pool as non paged all the time, thus further ignoring the pool type parameter of the function.
This commit is contained in:
parent
89f5f5bb95
commit
ff0a325116
1 changed files with 1 additions and 1 deletions
|
@ -920,7 +920,7 @@ SeSetSecurityDescriptorInfoEx(
|
|||
}
|
||||
SaclLength = Sacl ? ROUND_UP((ULONG)Sacl->AclSize, 4) : 0;
|
||||
|
||||
NewSd = ExAllocatePoolWithTag(NonPagedPool,
|
||||
NewSd = ExAllocatePoolWithTag(PoolType,
|
||||
sizeof(SECURITY_DESCRIPTOR_RELATIVE) +
|
||||
OwnerLength + GroupLength +
|
||||
DaclLength + SaclLength,
|
||||
|
|
Loading…
Reference in a new issue