mirror of
https://github.com/reactos/reactos.git
synced 2026-05-23 15:50:29 +08:00
[NTOS:OB] Correctly handle OBJ_PROTECT_CLOSE in ObDuplicateObject.
This commit is contained in:
@@ -2443,6 +2443,12 @@ ObDuplicateObject(IN PEPROCESS SourceProcess,
|
||||
return Status;
|
||||
}
|
||||
|
||||
if (NewHandleEntry.ObAttributes & OBJ_PROTECT_CLOSE)
|
||||
{
|
||||
NewHandleEntry.ObAttributes &= ~OBJ_PROTECT_CLOSE;
|
||||
NewHandleEntry.GrantedAccess |= ObpAccessProtectCloseBit;
|
||||
}
|
||||
|
||||
/* Now create the handle */
|
||||
NewHandle = ExCreateHandle(HandleTable, &NewHandleEntry);
|
||||
if (!NewHandle)
|
||||
|
||||
Reference in New Issue
Block a user