From 1317da82923ad2b86d4f485062a200e8e78824d5 Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 26 Dec 2016 08:02:17 +0000 Subject: ptyc_console_reader(): properly invoke ntapi's pty_write() (uint32_t bytes). --- src/console/ptyc_console_reader.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') 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) -- cgit v1.2.3