mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +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)
|
||||
*/
|
||||
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 */
|
||||
State->NewPrivileges->PrivilegeCount = NumPriv;
|
||||
|
|
Loading…
Reference in a new issue