summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2017-07-30 21:21:21 +0000
committermidipix <writeonce@midipix.org>2017-07-31 08:43:35 -0400
commitb58b750f6fa5386da21c97299143da34081553df (patch)
treeae2edfc88d06b56ee23f40426cac21c6d635640c /src
parent1b6aec121567338583f5100d77a5bcd9a160363b (diff)
downloadntapi-b58b750f6fa5386da21c97299143da34081553df.tar.bz2
ntapi-b58b750f6fa5386da21c97299143da34081553df.tar.xz
subsystem interfaces: session creation: use srv_type and co. more elegantly.
Diffstat (limited to 'src')
-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];