summaryrefslogtreecommitdiffhomepage
path: root/src/console/ptyc_console_reader.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/console/ptyc_console_reader.c')
-rw-r--r--src/console/ptyc_console_reader.c5
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)