sys: FileNode: properly maintain Security/SecurityChangeNumber fields

This commit is contained in:
Bill Zissimopoulos
2016-02-19 16:13:57 -08:00
parent e77a8b0262
commit 9e057b4ea1
2 changed files with 7 additions and 1 deletions

View File

@ -292,7 +292,7 @@ NTSTATUS FspFsvolSetSecurityComplete(
/* if the security descriptor that we got back is valid */
if (0 < Response->Rsp.SetSecurity.SecurityDescriptor.Size &&
Response->Buffer + Response->Rsp.SetSecurity.SecurityDescriptor.Size <=
(PUINT8)Response + Response->Size &&
(PUINT8)Response + Response->Size &&
RtlValidRelativeSecurityDescriptor((PVOID)Response->Buffer,
Response->Rsp.SetSecurity.SecurityDescriptor.Size, 0))
{