[NTOS:SE]

- Fix pool corruption of the nastiest sort. Big thanks to Amine. Also thanks to MS for idiotic unsafe typedefs.

svn path=/trunk/; revision=59325
This commit is contained in:
Thomas Faber 2013-06-23 22:10:47 +00:00
parent 583b6cfed0
commit 6b0f55c9e9

View file

@ -657,7 +657,7 @@ SepCreateToken(OUT PHANDLE TokenHandle,
*/
uLength = sizeof(SID_AND_ATTRIBUTES) * AccessToken->UserAndGroupCount;
uLength += RtlLengthSid(User);
uLength += RtlLengthSid(User->Sid);
for (i = 0; i < GroupCount; i++)
uLength += RtlLengthSid(Groups[i].Sid);