mirror of
https://github.com/reactos/reactos
synced 2025-10-05 16:02:58 +02:00
[NTOS:SE] SeValidSecurityDescriptor: Use relative security descriptor header size for length calculation (#8127)
Fixes Win2k3 ntfs.sys on x64
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user