mirror of
https://github.com/reactos/reactos.git
synced 2025-01-13 01:22:03 +00:00
fixed SetHandleInformation to take dwMask into account. This was accidently removed in r11165. Thanks to mygfya
svn path=/trunk/; revision=19903
This commit is contained in:
parent
d381e2d56e
commit
5daa6cb919
1 changed files with 5 additions and 2 deletions
|
@ -112,8 +112,11 @@ SetHandleInformation (HANDLE hObject,
|
|||
&BytesWritten);
|
||||
if (NT_SUCCESS(Status))
|
||||
{
|
||||
HandleInfo.Inherit = (dwFlags & HANDLE_FLAG_INHERIT) != 0;
|
||||
HandleInfo.ProtectFromClose = (dwFlags & HANDLE_FLAG_PROTECT_FROM_CLOSE) != 0;
|
||||
if (dwMask & HANDLE_FLAG_INHERIT)
|
||||
HandleInfo.Inherit = (dwFlags & HANDLE_FLAG_INHERIT) != 0;
|
||||
if (dwMask & HANDLE_FLAG_PROTECT_FROM_CLOSE)
|
||||
HandleInfo.ProtectFromClose = (dwFlags & HANDLE_FLAG_PROTECT_FROM_CLOSE) != 0;
|
||||
|
||||
Status = NtSetInformationObject (hObject,
|
||||
ObjectHandleInformation,
|
||||
&HandleInfo,
|
||||
|
|
Loading…
Reference in a new issue