From 736fac2ce594fb10c75f27dea42742498987b90c Mon Sep 17 00:00:00 2001 From: midipix Date: Dec 03 2020 22:31:21 +0000 Subject: __ntapi_ipc_init_section_by_port(): release lock upon node-not-found. --- 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;