mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 05:42:59 +00:00
fix comment IsUserAdmin -> IsUserAnAdmin
svn path=/trunk/; revision=41569
This commit is contained in:
parent
c8ee793546
commit
2cbbe81d25
1 changed files with 12 additions and 5 deletions
|
@ -1265,11 +1265,19 @@ BOOL WINAPI FileIconInit(BOOL bFullInit)
|
||||||
{ FIXME("(%s)\n", bFullInit ? "true" : "false");
|
{ FIXME("(%s)\n", bFullInit ? "true" : "false");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
/*************************************************************************
|
|
||||||
* IsUserAdmin [SHELL32.680] NT 4.0
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
/*************************************************************************
|
||||||
|
* IsUserAnAdmin [SHELL32.680] NT 4.0
|
||||||
|
*
|
||||||
|
* Checks whether the current user is a member of the Administrators group.
|
||||||
|
*
|
||||||
|
* PARAMS
|
||||||
|
* None
|
||||||
|
*
|
||||||
|
* RETURNS
|
||||||
|
* Success: TRUE
|
||||||
|
* Failure: FALSE
|
||||||
|
*/
|
||||||
BOOL WINAPI IsUserAnAdmin(VOID)
|
BOOL WINAPI IsUserAnAdmin(VOID)
|
||||||
{
|
{
|
||||||
SID_IDENTIFIER_AUTHORITY Authority = {SECURITY_NT_AUTHORITY};
|
SID_IDENTIFIER_AUTHORITY Authority = {SECURITY_NT_AUTHORITY};
|
||||||
|
@ -1331,7 +1339,6 @@ BOOL WINAPI IsUserAnAdmin(VOID)
|
||||||
|
|
||||||
FreeSid(lpSid);
|
FreeSid(lpSid);
|
||||||
HeapFree(GetProcessHeap(), 0, lpGroups);
|
HeapFree(GetProcessHeap(), 0, lpGroups);
|
||||||
|
|
||||||
return bResult;
|
return bResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue