[NTOS:OB]
authorThomas Faber <thomas.faber@reactos.org>
Tue, 5 Jul 2016 22:24:54 +0000 (22:24 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Tue, 5 Jul 2016 22:24:54 +0000 (22:24 +0000)
- Always set LinkHandle in NtOpenSymbolicLinkObject, as shown by tests
CORE-11509 #resolve

svn path=/trunk/; revision=71828

reactos/ntoskrnl/ob/oblink.c

index 8eb1beb..2631bd7 100644 (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;