Commit d7fb376d authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

ntdll: Use boolean return values in boolean functions.

parent b3003257
...@@ -1145,13 +1145,13 @@ BOOLEAN WINAPI RtlFirstFreeAce( ...@@ -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) ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment