diff options
author | midipix <writeonce@midipix.org> | 2017-07-30 21:21:21 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2017-07-31 08:43:35 -0400 |
commit | b58b750f6fa5386da21c97299143da34081553df (patch) | |
tree | ae2edfc88d06b56ee23f40426cac21c6d635640c | |
parent | 1b6aec121567338583f5100d77a5bcd9a160363b (diff) | |
download | ntapi-b58b750f6fa5386da21c97299143da34081553df.tar.bz2 ntapi-b58b750f6fa5386da21c97299143da34081553df.tar.xz |
subsystem interfaces: session creation: use srv_type and co. more elegantly.
-rw-r--r-- | src/tty/ntapi_tty_create_session.c | 14 |
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]; |