diff --git a/ntoskrnl/ob/obref.c b/ntoskrnl/ob/obref.c index 60825543e25..1448d29e1b8 100644 --- a/ntoskrnl/ob/obref.c +++ b/ntoskrnl/ob/obref.c @@ -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)