From d9600b02844336881afbf8b23e2a66670461906a Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 23 Jul 2016 02:58:06 -0400 Subject: __ntapi_tty_join_session(): for primary sessions, also set rtdata->hsession. --- src/tty/ntapi_tty_join_session.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/tty') diff --git a/src/tty/ntapi_tty_join_session.c b/src/tty/ntapi_tty_join_session.c index e5f96cc..245c571 100644 --- a/src/tty/ntapi_tty_join_session.c +++ b/src/tty/ntapi_tty_join_session.c @@ -42,6 +42,9 @@ int32_t __stdcall __ntapi_tty_join_session( if (hport != &__internals->hport_tty_session) __internals->hport_tty_session = *hport; + if (__internals->rtdata) + __internals->rtdata->hsession = *hport; + if (port_name != __internals->subsystem) __ntapi->tt_memcpy_utf16( __internals->subsystem->base_named_objects, -- cgit v1.2.3