fixed AdjustTokenPrivileges() call
Modified: trunk/reactos/lib/syssetup/wizard.c
_____
Modified: trunk/reactos/lib/syssetup/wizard.c
--- trunk/reactos/lib/syssetup/wizard.c 2005-03-20 09:58:10 UTC (rev
14211)
+++ trunk/reactos/lib/syssetup/wizard.c 2005-03-20 11:22:50 UTC (rev
14212)
@@ -1125,6 +1125,7 @@
SetSystemLocalTime(HWND hwnd, PSETUPDATA SetupData)
{
HANDLE hToken;
+ DWORD PrevSize;
TOKEN_PRIVILEGES priv, previouspriv;
BOOL Ret = FALSE;
@@ -1148,7 +1149,7 @@
&priv,
sizeof(previouspriv),
&previouspriv,
- 0) &&
+ &PrevSize) &&
GetLastError() == ERROR_SUCCESS)
{
/*
@@ -1164,7 +1165,7 @@
AdjustTokenPrivileges(hToken,
FALSE,
&previouspriv,
- 0,
+ PrevSize,
NULL,
0);
}