diff options
Diffstat (limited to 'src/daemon')
-rw-r--r-- | src/daemon/ntapi_dsr_init.c | 1 | ||||
-rw-r--r-- | src/daemon/ntapi_dsr_internal_connection.c | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/daemon/ntapi_dsr_init.c b/src/daemon/ntapi_dsr_init.c index d74806d..20d7f87 100644 --- a/src/daemon/ntapi_dsr_init.c +++ b/src/daemon/ntapi_dsr_init.c @@ -175,7 +175,6 @@ int32_t __stdcall __ntapi_dsr_init(nt_daemon_params * params) if (params->flags & NT_DSR_INIT_CLOSE_EVENTS) { __ntapi->zw_close(params->hevent_daemon_port); __ntapi->zw_close(params->hevent_daemon_ready); - __ntapi->zw_close(params->hevent_internal_client_ready); } return NT_STATUS_SUCCESS;; diff --git a/src/daemon/ntapi_dsr_internal_connection.c b/src/daemon/ntapi_dsr_internal_connection.c index e440719..5301791 100644 --- a/src/daemon/ntapi_dsr_internal_connection.c +++ b/src/daemon/ntapi_dsr_internal_connection.c @@ -74,6 +74,9 @@ static int32_t __ntapi_dsr_internal_client_connect_impl(nt_daemon_params * param params->hevent_internal_client_ready, 0); + if (params->flags & NT_DSR_INIT_CLOSE_EVENTS) + __ntapi->zw_close(params->hevent_internal_client_ready); + /* exit the task-specific thread */ return __ntapi_dsr_internal_client_connect_exit( params,status); |