Author: fireball
Date: Thu Jun 6 21:54:00 2013
New Revision: 59182
URL:
http://svn.reactos.org/svn/reactos?rev=59182&view=rev
Log:
[KMTEST]
- Fix variables declarations, and don't mix 1/0 and TRUE/FALSE. Boolean was invented
for that.
Modified:
trunk/rostests/kmtests/ntos_se/SeQueryInfoToken.c
Modified: trunk/rostests/kmtests/ntos_se/SeQueryInfoToken.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/kmtests/ntos_se/SeQueryIn…
==============================================================================
--- trunk/rostests/kmtests/ntos_se/SeQueryInfoToken.c [iso-8859-1] (original)
+++ trunk/rostests/kmtests/ntos_se/SeQueryInfoToken.c [iso-8859-1] Thu Jun 6 21:54:00
2013
@@ -47,6 +47,8 @@
PTOKEN_STATISTICS TStats;
PTOKEN_TYPE TType;
PTOKEN_USER TUser;
+ BOOLEAN Flag;
+ ULONG i;
//----------------------------------------------------------------//
// Testing SeQueryInformationToken with various args //
@@ -100,18 +102,17 @@
{
TGroups = (PTOKEN_GROUPS)Buffer;
GroupCount = TGroups->GroupCount;
- int flag = 1;
- int i;
+ Flag = TRUE;
for (i = 0; i < GroupCount; i++)
{
sid = TGroups->Groups[i].Sid;
if (!RtlValidSid(sid))
{
- flag = 0;
+ Flag = FALSE;
break;
}
}
- ok((flag == TRUE), "TokenGroup's SIDs are not valid\n");
+ ok((Flag == TRUE), "TokenGroup's SIDs are not valid\n");
ExFreePool(Buffer);
}
}
@@ -221,6 +222,7 @@
PVOID Buffer;
POBJECT_TYPE PsProcessType = NULL;
PGENERIC_MAPPING GenericMapping;
+ ULONG i;
SubjectContext = ExAllocatePool(PagedPool, sizeof(SECURITY_SUBJECT_CONTEXT));
@@ -351,7 +353,6 @@
ok((SeAppendPrivileges(AccessState, NewPrivilegeSet)) == STATUS_SUCCESS,
"SeAppendPrivileges failed\n");
ok((AuxData->PrivilegeSet->PrivilegeCount == 20),"PrivelegeCount
must be 20, but it is %d\n", AuxData->PrivilegeSet->PrivilegeCount);
ExFreePool(NewPrivilegeSet);
- int i;
for (i = 0; i < AuxData->PrivilegeSet->PrivilegeCount; i++)
{
AuxData->PrivilegeSet->Privilege[i].Attributes =
TPrivileges->Privileges[i].Attributes;