mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
[NTOS/SE]
- Allocate the new ACL for the token with the right pool. Fixes google chrome BAD_POOL_CALLER bugcheck. svn path=/trunk/; revision=65139
This commit is contained in:
@@ -1909,8 +1909,20 @@ NtSetInformationToken(IN HANDLE TokenHandle,
|
||||
ExFreePoolWithTag(Token->DefaultDacl, TAG_TOKEN_ACL);
|
||||
}
|
||||
|
||||
/* Set the new dacl */
|
||||
Token->DefaultDacl = CapturedAcl;
|
||||
Token->DefaultDacl = ExAllocatePoolWithTag(PagedPool,
|
||||
CapturedAcl->AclSize,
|
||||
TAG_TOKEN_ACL);
|
||||
if (!Token->DefaultDacl)
|
||||
{
|
||||
ExFreePoolWithTag(CapturedAcl, TAG_ACL);
|
||||
Status = STATUS_NO_MEMORY;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Set the new dacl */
|
||||
RtlCopyMemory(Token->DefaultDacl, CapturedAcl, CapturedAcl->AclSize);
|
||||
ExFreePoolWithTag(CapturedAcl, TAG_ACL);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user