mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Fix bug in RtlEqualSid() that caused all sids with the same sub-authority count to compare equal.
Teach RtlpAddKnownAce() some status values other than STATUS_UNSUCCESSFUL. (Patch by Joseph Galbraith) svn path=/trunk/; revision=3090
This commit is contained in:
parent
fd874ecc14
commit
165c6d209a
2 changed files with 4 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: sid.c,v 1.2 2000/04/15 23:10:41 ekohl Exp $
|
||||
/* $Id: sid.c,v 1.3 2002/06/15 10:10:19 ekohl Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -68,7 +68,7 @@ BOOLEAN STDCALL RtlEqualSid (PSID Sid1, PSID Sid2)
|
|||
{
|
||||
return(FALSE);
|
||||
}
|
||||
if (memcmp(Sid1, Sid2, RtlLengthSid(Sid1) != 0))
|
||||
if (memcmp(Sid1, Sid2, RtlLengthSid(Sid1)) != 0)
|
||||
{
|
||||
return(FALSE);
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: sid.c,v 1.8 2002/02/20 20:15:38 ekohl Exp $
|
||||
/* $Id: sid.c,v 1.9 2002/06/15 10:10:43 ekohl Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -532,7 +532,7 @@ RtlEqualSid(PSID Sid1,
|
|||
{
|
||||
return(FALSE);
|
||||
}
|
||||
if (memcmp(Sid1, Sid2, RtlLengthSid(Sid1) != 0))
|
||||
if (memcmp(Sid1, Sid2, RtlLengthSid(Sid1)) != 0)
|
||||
{
|
||||
return(FALSE);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue