ntdll: Use boolean return values in boolean functions.

oldstable
André Hentschel 2014-01-27 22:26:53 +01:00 committed by Alexandre Julliard
parent b30032579f
commit d7fb376db4
1 changed files with 4 additions and 4 deletions

View File

@ -1145,13 +1145,13 @@ BOOLEAN WINAPI RtlFirstFreeAce(
ace = (PACE_HEADER)(acl+1); ace = (PACE_HEADER)(acl+1);
for (i=0;i<acl->AceCount;i++) { for (i=0;i<acl->AceCount;i++) {
if ((BYTE *)ace >= (BYTE *)acl + acl->AclSize) if ((BYTE *)ace >= (BYTE *)acl + acl->AclSize)
return 0; return FALSE;
ace = (PACE_HEADER)(((BYTE*)ace)+ace->AceSize); ace = (PACE_HEADER)(((BYTE*)ace)+ace->AceSize);
} }
if ((BYTE *)ace >= (BYTE *)acl + acl->AclSize) if ((BYTE *)ace >= (BYTE *)acl + acl->AclSize)
return 0; return FALSE;
*x = ace; *x = ace;
return 1; return TRUE;
} }
/************************************************************************** /**************************************************************************
@ -1349,7 +1349,7 @@ BOOLEAN WINAPI RtlValidAcl(PACL pAcl)
__EXCEPT_PAGE_FAULT __EXCEPT_PAGE_FAULT
{ {
WARN("(%p): invalid pointer!\n", pAcl); WARN("(%p): invalid pointer!\n", pAcl);
return 0; return FALSE;
} }
__ENDTRY __ENDTRY
return ret; return ret;