From 54abedf993470fd41b5defeb7c15115ed22bce98 Mon Sep 17 00:00:00 2001 From: midipix Date: Jul 06 2016 05:50:11 +0000 Subject: __ntapi_pty_open(): properly set the context's hpty member when opening a pts. --- 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; }