mirror of
https://github.com/reactos/reactos.git
synced 2025-07-27 15:11:41 +00:00
[RTL]
--MagicValues; svn path=/trunk/; revision=62615
This commit is contained in:
parent
a98a284868
commit
b929ccd22f
1 changed files with 1 additions and 1 deletions
|
@ -260,7 +260,7 @@ RtlAcquirePrivilege(IN PULONG Privilege,
|
||||||
* There's NO overflow risks (OldPrivileges is always used with its size)
|
* There's NO overflow risks (OldPrivileges is always used with its size)
|
||||||
*/
|
*/
|
||||||
State->OldPrivileges = (PTOKEN_PRIVILEGES)State->OldPrivBuffer;
|
State->OldPrivileges = (PTOKEN_PRIVILEGES)State->OldPrivBuffer;
|
||||||
State->NewPrivileges = (PTOKEN_PRIVILEGES)(State->OldPrivBuffer + 1024);
|
State->NewPrivileges = (PTOKEN_PRIVILEGES)(State->OldPrivBuffer + (sizeof(State->OldPrivBuffer) / sizeof(State->OldPrivBuffer[0])));
|
||||||
|
|
||||||
/* Assign all the privileges to be acquired */
|
/* Assign all the privileges to be acquired */
|
||||||
State->NewPrivileges->PrivilegeCount = NumPriv;
|
State->NewPrivileges->PrivilegeCount = NumPriv;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue