diff options
author | midipix <writeonce@midipix.org> | 2016-12-26 08:02:17 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-12-26 03:47:44 -0500 |
commit | 1317da82923ad2b86d4f485062a200e8e78824d5 (patch) | |
tree | 02da69232f715577fba69c84f954633a8ec003ae /src/console | |
parent | 03898bc2419140ade7f3c89207626c002724379c (diff) | |
download | ptycon-1317da82923ad2b86d4f485062a200e8e78824d5.tar.bz2 ptycon-1317da82923ad2b86d4f485062a200e8e78824d5.tar.xz |
ptyc_console_reader(): properly invoke ntapi's pty_write() (uint32_t bytes).
Diffstat (limited to 'src/console')
-rw-r--r-- | src/console/ptyc_console_reader.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/console/ptyc_console_reader.c b/src/console/ptyc_console_reader.c index 76b8ce6..984dac7 100644 --- a/src/console/ptyc_console_reader.c +++ b/src/console/ptyc_console_reader.c @@ -216,9 +216,8 @@ int __stdcall ptyc_console_reader(struct ptyc_driver_ctx_impl * ictx) for (; nbytes; ) { status = ntapi->pty_write( ictx->cctx.hptm, - hwait,0,0, - &iosb, - ch,nbytes, + hwait,0,0,&iosb, + ch,(uint32_t)nbytes, 0,0); if (status == NT_STATUS_PENDING) |