From 16a868a4e7407afbc19d47ba2bfc19bc2263bd4c Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Mon, 12 Jul 2004 19:39:29 +0000 Subject: [PATCH] Replace hardcoded values by new constants. svn path=/trunk/; revision=10092 --- reactos/lib/rtl/sid.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/reactos/lib/rtl/sid.c b/reactos/lib/rtl/sid.c index 60e742b1c68..77f01a21439 100644 --- a/reactos/lib/rtl/sid.c +++ b/reactos/lib/rtl/sid.c @@ -1,4 +1,4 @@ -/* $Id: sid.c,v 1.3 2004/07/10 13:11:18 ekohl Exp $ +/* $Id: sid.c,v 1.4 2004/07/12 19:39:29 ekohl Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -24,8 +24,8 @@ BOOLEAN STDCALL RtlValidSid(IN PSID Sid) { - if (((Sid->Revision & 0xf) != 1) || - (Sid->SubAuthorityCount > 15)) + if ((Sid->Revision != SID_REVISION) || + (Sid->SubAuthorityCount > SID_MAX_SUB_AUTHORITIES)) { return FALSE; } @@ -52,7 +52,7 @@ RtlInitializeSid(IN PSID Sid, IN PSID_IDENTIFIER_AUTHORITY IdentifierAuthority, IN UCHAR SubAuthorityCount) { - Sid->Revision = 1; + Sid->Revision = SID_REVISION; Sid->SubAuthorityCount = SubAuthorityCount; memcpy(&Sid->IdentifierAuthority, IdentifierAuthority, @@ -215,7 +215,7 @@ RtlAllocateAndInitializeSid(PSID_IDENTIFIER_AUTHORITY IdentifierAuthority, if (pSid == NULL) return STATUS_NO_MEMORY; - pSid->Revision = 1; + pSid->Revision = SID_REVISION; pSid->SubAuthorityCount = SubAuthorityCount; memcpy(&pSid->IdentifierAuthority, IdentifierAuthority,