Improvements to NtAdjustPrivilegesToken part 2:
authorEric Kohl <eric.kohl@reactos.org>
Mon, 6 Sep 2010 15:26:12 +0000 (15:26 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Mon, 6 Sep 2010 15:26:12 +0000 (15:26 +0000)
commit9ba0d09d90b6c380a4b35f2931d7b9ea2b556874
treed93495cba0f9580c1fe8c32cee86cfbaf73c8048
parent1e34ad4d19170cf91ed4cbd984482408b93f7c0a
Improvements to NtAdjustPrivilegesToken part 2:
- Check for invalid parameter combinations.
- Count privileges that will be changed before changing them.
- Return required buffer size.
- Fail if the provided buffer is too small.
See issue #5497 for more details.

svn path=/trunk/; revision=48710
reactos/ntoskrnl/se/token.c