setupapi: Fix comparing the group SIDs in IsUserAdmin.
This commit is contained in:
parent
412cb77d51
commit
278bd29b8d
|
@ -248,7 +248,7 @@ BOOL WINAPI IsUserAdmin(VOID)
|
||||||
|
|
||||||
for (i = 0; i < lpGroups->GroupCount; i++)
|
for (i = 0; i < lpGroups->GroupCount; i++)
|
||||||
{
|
{
|
||||||
if (EqualSid(lpSid, &lpGroups->Groups[i].Sid))
|
if (EqualSid(lpSid, lpGroups->Groups[i].Sid))
|
||||||
{
|
{
|
||||||
bResult = TRUE;
|
bResult = TRUE;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue