summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-07-23 02:58:06 -0400
committermidipix <writeonce@midipix.org>2016-07-24 06:17:25 -0400
commitd9600b02844336881afbf8b23e2a66670461906a (patch)
tree9703f3aa21625c37f5b12a99259d46c7f37f27de
parentc34b2cb9027b8d9dfb127241a9634b7b47a84186 (diff)
downloadntapi-d9600b02844336881afbf8b23e2a66670461906a.tar.bz2
ntapi-d9600b02844336881afbf8b23e2a66670461906a.tar.xz
__ntapi_tty_join_session(): for primary sessions, also set rtdata->hsession.
-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,