Author: tfaber
Date: Tue Jul 5 22:24:54 2016
New Revision: 71828
URL:
http://svn.reactos.org/svn/reactos?rev=71828&view=rev
Log:
[NTOS:OB]
- Always set LinkHandle in NtOpenSymbolicLinkObject, as shown by tests
CORE-11509 #resolve
Modified:
trunk/reactos/ntoskrnl/ob/oblink.c
Modified: trunk/reactos/ntoskrnl/ob/oblink.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ob/oblink.c?rev=7…
==============================================================================
--- trunk/reactos/ntoskrnl/ob/oblink.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ob/oblink.c [iso-8859-1] Tue Jul 5 22:24:54 2016
@@ -702,20 +702,18 @@
DesiredAccess,
NULL,
&hLink);
- if (NT_SUCCESS(Status))
- {
- _SEH2_TRY
- {
- /* Return the handle to caller */
- *LinkHandle = hLink;
- }
- _SEH2_EXCEPT(ExSystemExceptionFilter())
- {
- /* Get exception code */
- Status = _SEH2_GetExceptionCode();
- }
- _SEH2_END;
- }
+
+ _SEH2_TRY
+ {
+ /* Return the handle to caller */
+ *LinkHandle = hLink;
+ }
+ _SEH2_EXCEPT(ExSystemExceptionFilter())
+ {
+ /* Get exception code */
+ Status = _SEH2_GetExceptionCode();
+ }
+ _SEH2_END;
/* Return status to caller */
return Status;