From b58b750f6fa5386da21c97299143da34081553df Mon Sep 17 00:00:00 2001 From: midipix Date: Jul 31 2017 12:43:35 +0000 Subject: subsystem interfaces: session creation: use srv_type and co. more elegantly. --- diff --git a/src/tty/ntapi_tty_create_session.c b/src/tty/ntapi_tty_create_session.c index 0c0a4fb..bac3a20 100644 --- a/src/tty/ntapi_tty_create_session.c +++ b/src/tty/ntapi_tty_create_session.c @@ -47,6 +47,9 @@ int32_t __stdcall __ntapi_tty_create_session( nt_create_process_params params; nt_event_basic_information eready; + /* abi/api */ + (void)subtype; + /* validate */ if (!image_name) return NT_STATUS_INVALID_PARAMETER; @@ -151,15 +154,8 @@ int32_t __stdcall __ntapi_tty_create_session( &ssattr.abi, &(nt_guid)NT_PROCESS_GUID_RTDATA); - ssattr.port_type = port_attr.type; - ssattr.port_subtype = port_attr.subtype; - - __ntapi->tt_guid_copy( - &ssattr.port_guid, - &port_attr.guid); - - ssattr.srv_type = type; - ssattr.srv_subtype = subtype; + ssattr.srv_type = port_attr.type; + ssattr.srv_subtype = port_attr.subtype; ssattr.srv_keys[0] = port_attr.keys.key[0]; ssattr.srv_keys[1] = port_attr.keys.key[1];