From 54abedf993470fd41b5defeb7c15115ed22bce98 Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 6 Jul 2016 01:34:20 -0400 Subject: __ntapi_pty_open(): properly set the context's hpty member when opening a pts. --- src/pty/ntapi_pty_fd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pty/ntapi_pty_fd.c b/src/pty/ntapi_pty_fd.c index 8e6110d..58116df 100644 --- a/src/pty/ntapi_pty_fd.c +++ b/src/pty/ntapi_pty_fd.c @@ -222,6 +222,7 @@ int32_t __stdcall __ntapi_pty_open( /* pts */ if (obj_attr->root_dir) { + ctx->hpty = ((nt_pty *)obj_attr->root_dir)->hpty; ctx->luid.high = ((nt_pty *)obj_attr->root_dir)->luid.high; ctx->luid.low = ((nt_pty *)obj_attr->root_dir)->luid.low; } -- cgit v1.2.3