[setupapi] fixed IsUserAdmin

Thomas Weidenmueller w3seek at reactos.com
Sat Dec 17 15:15:30 CST 2005


Fix comparing the group SIDs in IsUserAdmin.
-------------- next part --------------
Index: dlls/setupapi/misc.c
===================================================================
RCS file: /home/wine/wine/dlls/setupapi/misc.c,v
retrieving revision 1.6
diff -u -r1.6 misc.c
--- dlls/setupapi/misc.c	12 Aug 2005 18:23:06 -0000	1.6
+++ dlls/setupapi/misc.c	17 Dec 2005 21:14:01 -0000
@@ -248,7 +248,7 @@
 
     for (i = 0; i < lpGroups->GroupCount; i++)
     {
-        if (EqualSid(lpSid, &lpGroups->Groups[i].Sid))
+        if (EqualSid(lpSid, lpGroups->Groups[i].Sid))
         {
             bResult = TRUE;
             break;


More information about the wine-patches mailing list