392ff9 __ntapi_dsr_connect_internal_client((): remove timeout (designated thread).

Authored and Committed by midipix 6 years ago
    __ntapi_dsr_connect_internal_client((): remove timeout (designated thread).
    
        
src/daemon/ntapi_dsr_internal_connection.c CHANGED
@@ -33,7 +33,6 @@ int32_t __stdcall __ntapi_dsr_connect_internal_client(nt_daemon_params * params)
33
33
int32_t status;
34
34
intptr_t port_id;
35
35
nt_port_message port_msg;
36
- nt_large_integer timeout;
37
36
void * hport;
38
37
void * hready;
39
38
@@ -45,15 +44,10 @@ int32_t __stdcall __ntapi_dsr_connect_internal_client(nt_daemon_params * params)
45
44
&params->exit_code_daemon_start,
46
45
NT_STATUS_MORE_PROCESSING_REQUIRED);
47
46
48
- /* timeout-enabled first connection */
49
- timeout.quad = NT_DSR_INIT_MAX_WAIT;
47
+ /* first connection */
48
+ if ((status = __ntapi->zw_reply_wait_receive_port(
50
-
51
- if ((status = __ntapi->zw_reply_wait_receive_port_ex(
52
49
params->hport_daemon,
53
- &port_id,
50
+ &port_id,0,&port_msg)))
54
- (nt_port_message *)0,
55
- (nt_port_message *)&port_msg,
56
- &timeout)))
57
51
return status;
58
52
59
53
/* the internal client must be first */
@@ -151,4 +145,4 @@ int32_t __stdcall __ntapi_dsr_internal_client_connect(nt_daemon_params * params)
151
145
return __ntapi_tt_seh_frame(
152
146
params,0,0,
153
147
__ntapi_dsr_internal_client_connect_impl);
154
- }
148
+ }