mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 23:35:45 +00: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:
parent
b5f763447c
commit
81a4d8344b
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue