diff options
author | midipix <writeonce@midipix.org> | 2016-07-06 01:34:20 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-07-06 01:50:11 -0400 |
commit | 54abedf993470fd41b5defeb7c15115ed22bce98 (patch) | |
tree | d5f83c2cf53ce2b0b8da6ec1459d44baa00d5ebb | |
parent | 45c7e6dc6db2dad59135d525b0a2fb3fa26a538d (diff) | |
download | ntapi-54abedf993470fd41b5defeb7c15115ed22bce98.tar.bz2 ntapi-54abedf993470fd41b5defeb7c15115ed22bce98.tar.xz |
__ntapi_pty_open(): properly set the context's hpty member when opening a pts.
-rw-r--r-- | src/pty/ntapi_pty_fd.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |