mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 22:52:54 +00:00
Ensure success
svn path=/trunk/; revision=15417
This commit is contained in:
parent
04f9bb0465
commit
b1274d7f85
1 changed files with 13 additions and 10 deletions
|
@ -104,17 +104,20 @@ CsrInsertObject(HANDLE ObjectHandle,
|
||||||
&ObjectAttributes,
|
&ObjectAttributes,
|
||||||
&Cid);
|
&Cid);
|
||||||
|
|
||||||
/* Duplicate the Handle */
|
if ((NT_SUCCESS(Status)))
|
||||||
Status = ZwDuplicateObject(NtCurrentProcess(),
|
{
|
||||||
ObjectHandle,
|
/* Duplicate the Handle */
|
||||||
CsrProcessHandle,
|
Status = ZwDuplicateObject(NtCurrentProcess(),
|
||||||
Handle,
|
ObjectHandle,
|
||||||
DesiredAccess,
|
CsrProcessHandle,
|
||||||
TRUE,
|
Handle,
|
||||||
0);
|
DesiredAccess,
|
||||||
|
TRUE,
|
||||||
|
0);
|
||||||
|
|
||||||
/* Close our handle to CSRSS */
|
/* Close our handle to CSRSS */
|
||||||
NtClose(CsrProcessHandle);
|
ZwClose(CsrProcessHandle);
|
||||||
|
}
|
||||||
|
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue