mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[NTOS:OB] Correctly handle OBJ_PROTECT_CLOSE in ObDuplicateObject.
This commit is contained in:
parent
a71f3a70d8
commit
f5fc9e0cf2
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue