diff --git a/ntoskrnl/se/sd.c b/ntoskrnl/se/sd.c index 26f61510482..3c967b1c786 100644 --- a/ntoskrnl/se/sd.c +++ b/ntoskrnl/se/sd.c @@ -1035,7 +1035,7 @@ SeValidSecurityDescriptor( if (Length < SECURITY_DESCRIPTOR_MIN_LENGTH) { - DPRINT1("Invalid Security Descriptor revision\n"); + DPRINT1("Invalid Security Descriptor length\n"); return FALSE; } @@ -1051,7 +1051,7 @@ SeValidSecurityDescriptor( return FALSE; } - SdLength = sizeof(SECURITY_DESCRIPTOR); + SdLength = sizeof(*SecurityDescriptor); /* Check Owner SID */ if (!SecurityDescriptor->Owner)