Author: pschweitzer
Date: Sat Apr 5 10:02:32 2014
New Revision: 62615
URL:
http://svn.reactos.org/svn/reactos?rev=62615&view=rev
Log:
[RTL]
--MagicValues;
Modified:
trunk/reactos/lib/rtl/priv.c
Modified: trunk/reactos/lib/rtl/priv.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/priv.c?rev=62615&a…
==============================================================================
--- trunk/reactos/lib/rtl/priv.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/priv.c [iso-8859-1] Sat Apr 5 10:02:32 2014
@@ -260,7 +260,7 @@
* 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;