diff --git a/src/daemon/ntapi_dsr_internal_connection.c b/src/daemon/ntapi_dsr_internal_connection.c index 16fd613..fecc027 100644 --- a/src/daemon/ntapi_dsr_internal_connection.c +++ b/src/daemon/ntapi_dsr_internal_connection.c @@ -33,7 +33,6 @@ int32_t __stdcall __ntapi_dsr_connect_internal_client(nt_daemon_params * params) int32_t status; intptr_t port_id; nt_port_message port_msg; - nt_large_integer timeout; void * hport; void * hready; @@ -45,15 +44,10 @@ int32_t __stdcall __ntapi_dsr_connect_internal_client(nt_daemon_params * params) ¶ms->exit_code_daemon_start, NT_STATUS_MORE_PROCESSING_REQUIRED); - /* timeout-enabled first connection */ - timeout.quad = NT_DSR_INIT_MAX_WAIT; - - if ((status = __ntapi->zw_reply_wait_receive_port_ex( + /* first connection */ + if ((status = __ntapi->zw_reply_wait_receive_port( params->hport_daemon, - &port_id, - (nt_port_message *)0, - (nt_port_message *)&port_msg, - &timeout))) + &port_id,0,&port_msg))) return status; /* the internal client must be first */ @@ -151,4 +145,4 @@ int32_t __stdcall __ntapi_dsr_internal_client_connect(nt_daemon_params * params) return __ntapi_tt_seh_frame( params,0,0, __ntapi_dsr_internal_client_connect_impl); -} \ No newline at end of file +}