summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/tty/ntapi_tty_create_session.c14
1 files changed, 5 insertions, 9 deletions
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];