summaryrefslogtreecommitdiffhomepage
path: root/src/tty
diff options
context:
space:
mode:
Diffstat (limited to 'src/tty')
-rw-r--r--src/tty/ntapi_tty_join_session.c3
1 files changed, 3 insertions, 0 deletions
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,