https://git.reactos.org/?p=reactos.git;a=commitdiff;h=6808e40b3b5ba2883305c…
commit 6808e40b3b5ba2883305c1b04196c6314be51e0a
Author: Serge Gautherie <32623169+SergeGautherie(a)users.noreply.github.com>
AuthorDate: Thu Jun 4 23:20:20 2020 +0200
Commit: GitHub <noreply(a)github.com>
CommitDate: Fri Jun 5 00:20:20 2020 +0300
[SDK:RTL] RtlValidAcl(): Improve ACL error messages (#2833)
CORE-11506
---
sdk/lib/rtl/acl.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sdk/lib/rtl/acl.c b/sdk/lib/rtl/acl.c
index 18fb3a623b3..e7fa8e3c7cf 100644
--- a/sdk/lib/rtl/acl.c
+++ b/sdk/lib/rtl/acl.c
@@ -847,21 +847,21 @@ RtlValidAcl(IN PACL Acl)
if ((Acl->AclRevision < MIN_ACL_REVISION) ||
(Acl->AclRevision > MAX_ACL_REVISION))
{
- DPRINT1("Invalid ACL revision\n");
+ DPRINT1("Invalid ACL revision: %u\n", Acl->AclRevision);
_SEH2_YIELD(return FALSE);
}
/* Next, validate that the ACL is USHORT-aligned */
if (ROUND_DOWN(Acl->AclSize, sizeof(USHORT)) != Acl->AclSize)
{
- DPRINT1("Invalid ACL size\n");
+ DPRINT1("Misaligned ACL size: %u\n", Acl->AclSize);
_SEH2_YIELD(return FALSE);
}
/* And that it's big enough */
if (Acl->AclSize < sizeof(ACL))
{
- DPRINT1("Invalid ACL size\n");
+ DPRINT1("Too small ACL size: %u\n", Acl->AclSize);
_SEH2_YIELD(return FALSE);
}