Skip to content

Commit 8e865cb

Browse files
[NTOS:OB] Return handle attributes by ObReferenceFileObjectForWrite (reactos#9213)
Resolve a FIXME in ObReferenceFileObjectForWrite by getting the handle attributes, the same way it's done in other parts of the Ob code.
1 parent aaab5f0 commit 8e865cb

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

ntoskrnl/ob/obref.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,7 @@ ObReferenceFileObjectForWrite(IN HANDLE Handle,
263263

264264
HandleInformation->GrantedAccess = GrantedAccess;
265265

266-
/* FIXME: Get handle attributes */
267-
HandleInformation->HandleAttributes = 0;
266+
HandleInformation->HandleAttributes = HandleEntry->ObAttributes & OBJ_HANDLE_ATTRIBUTES;
268267

269268
/* Do granted and desired access match? */
270269
if (GrantedAccess & DesiredAccess)

0 commit comments

Comments
 (0)