summaryrefslogtreecommitdiffhomepage
path: root/src/ipc
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipc')
-rw-r--r--src/ipc/ntapi_ipc_connect.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ipc/ntapi_ipc_connect.c b/src/ipc/ntapi_ipc_connect.c
index 6d86f3b..2d0e4b7 100644
--- a/src/ipc/ntapi_ipc_connect.c
+++ b/src/ipc/ntapi_ipc_connect.c
@@ -671,7 +671,9 @@ int32_t __stdcall __ntapi_ipc_init_section_by_port(
NT_STATUS_INTERNAL_ERROR);
else if (!node)
- return NT_STATUS_NOT_FOUND;
+ return __ipc_connect_return(
+ &__internals->hlock,
+ NT_STATUS_NOT_FOUND);
else
ipc = (nt_ipc_conn *)&node->dblock;