[NTOS:OB]

- Always set LinkHandle in NtOpenSymbolicLinkObject, as shown by tests
CORE-11509 #resolve

svn path=/trunk/; revision=71828
This commit is contained in:
Thomas Faber 2016-07-05 22:24:54 +00:00
parent 385c44897b
commit b8507bdc86

View file

@ -702,20 +702,18 @@ NtOpenSymbolicLinkObject(OUT PHANDLE LinkHandle,
DesiredAccess,
NULL,
&hLink);
if (NT_SUCCESS(Status))
_SEH2_TRY
{
_SEH2_TRY
{
/* Return the handle to caller */
*LinkHandle = hLink;
}
_SEH2_EXCEPT(ExSystemExceptionFilter())
{
/* Get exception code */
Status = _SEH2_GetExceptionCode();
}
_SEH2_END;
/* Return the handle to caller */
*LinkHandle = hLink;
}
_SEH2_EXCEPT(ExSystemExceptionFilter())
{
/* Get exception code */
Status = _SEH2_GetExceptionCode();
}
_SEH2_END;
/* Return status to caller */
return Status;