diff options
Diffstat (limited to 'src/tty')
-rw-r--r-- | src/tty/ntapi_tty_create_session.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/tty/ntapi_tty_create_session.c b/src/tty/ntapi_tty_create_session.c index 687d182..97e8a22 100644 --- a/src/tty/ntapi_tty_create_session.c +++ b/src/tty/ntapi_tty_create_session.c @@ -171,7 +171,7 @@ int32_t __stdcall __ntapi_tty_create_session( &port_attr.guid); if ((status = __ntapi->tt_create_private_event( - &ssattr.srv_ready, + &ssattr.hserver, NT_SYNCHRONIZATION_EVENT, NT_EVENT_NOT_SIGNALED))) return status; @@ -191,32 +191,32 @@ int32_t __stdcall __ntapi_tty_create_session( params.hsession = htty; if ((status = __ntapi->tt_create_native_process(¶ms))) - return __tty_create_session_return(ssattr.srv_ready,¶ms,status); + return __tty_create_session_return(ssattr.hserver,¶ms,status); __ntapi->zw_wait_for_multiple_objects( 2, - (void *[]){ssattr.srv_ready,params.hprocess}, + (void *[]){ssattr.hserver,params.hprocess}, NT_WAIT_ANY, NT_SYNC_NON_ALERTABLE, 0); if ((status = __ntapi->zw_query_event( - ssattr.srv_ready, + ssattr.hserver, NT_EVENT_BASIC_INFORMATION, &eready, sizeof(eready), &(size_t){0}))) - return __tty_create_session_return(ssattr.srv_ready,¶ms,status); + return __tty_create_session_return(ssattr.hserver,¶ms,status); if (!eready.signal_state) - return __tty_create_session_return(ssattr.srv_ready,¶ms,NT_STATUS_SYSTEM_PROCESS_TERMINATED); + return __tty_create_session_return(ssattr.hserver,¶ms,NT_STATUS_SYSTEM_PROCESS_TERMINATED); /* connect to subsystem */ if ((status = __ntapi->tty_connect( hport, &port_name->base_named_objects[0], NT_SECURITY_IMPERSONATION))) - return __tty_create_session_return(ssattr.srv_ready,¶ms,status); + return __tty_create_session_return(ssattr.hserver,¶ms,status); /* finalize primary session */ if (type == NT_TTY_SESSION_PRIMARY) { @@ -230,5 +230,5 @@ int32_t __stdcall __ntapi_tty_create_session( sizeof(*port_name)); }; - return __tty_create_session_return(ssattr.srv_ready,¶ms,NT_STATUS_SUCCESS); + return __tty_create_session_return(ssattr.hserver,¶ms,NT_STATUS_SUCCESS); } |