[NTOS:OB] Return handle attributes by ObReferenceFileObjectForWrite (#9213)

Resolve a FIXME in ObReferenceFileObjectForWrite by getting the handle attributes,
the same way it's done in other parts of the Ob code.
This commit is contained in:
Alex Mendoza
2026-06-26 19:22:55 +02:00
committed by GitHub
parent aaab5f0198
commit 8e865cb39d
+1 -2
View File
@@ -263,8 +263,7 @@ ObReferenceFileObjectForWrite(IN HANDLE Handle,
HandleInformation->GrantedAccess = GrantedAccess;
/* FIXME: Get handle attributes */
HandleInformation->HandleAttributes = 0;
HandleInformation->HandleAttributes = HandleEntry->ObAttributes & OBJ_HANDLE_ATTRIBUTES;
/* Do granted and desired access match? */
if (GrantedAccess & DesiredAccess)