diff options
Diffstat (limited to 'src/tty')
-rw-r--r-- | src/tty/ntapi_tty_create_session.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/tty/ntapi_tty_create_session.c b/src/tty/ntapi_tty_create_session.c index 6c57d39..687d182 100644 --- a/src/tty/ntapi_tty_create_session.c +++ b/src/tty/ntapi_tty_create_session.c @@ -29,6 +29,7 @@ int32_t __stdcall __ntapi_tty_create_session( __out void ** hport, __out nt_port_name * port_name, __in nt_tty_session_type type, + __in nt_tty_session_subtype subtype, __in const nt_guid * guid __optional, __in wchar16_t * image_name __optional, __in void * htty __optional) @@ -148,8 +149,16 @@ int32_t __stdcall __ntapi_tty_create_session( } /* subsystem attributes */ - ssattr.srv_type = port_attr.type; - ssattr.srv_subtype = port_attr.subtype; + 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_keys[0] = port_attr.keys.key[0]; ssattr.srv_keys[1] = port_attr.keys.key[1]; ssattr.srv_keys[2] = port_attr.keys.key[2]; |