summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-12-26 08:16:00 +0000
committermidipix <writeonce@midipix.org>2016-12-26 03:47:51 -0500
commitcc353e5fdca475a91b033f542d68a806801ec3a8 (patch)
treeaefb158c9806ad94a229b2449116a8497744efa9
parent4fd16c42051adf326df62039ad3e693878911338 (diff)
downloadptycon-cc353e5fdca475a91b033f542d68a806801ec3a8.tar.bz2
ptycon-cc353e5fdca475a91b033f542d68a806801ec3a8.tar.xz
ptyc_dbg_oven(): properly invoke ntapi's pty_write() (uint32_t bytes).
-rw-r--r--src/debug/ptyc_dbg_oven.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/debug/ptyc_dbg_oven.c b/src/debug/ptyc_dbg_oven.c
index 4adc5f8..49ddb82 100644
--- a/src/debug/ptyc_dbg_oven.c
+++ b/src/debug/ptyc_dbg_oven.c
@@ -50,9 +50,8 @@ int __stdcall ptyc_dbg_oven(struct ptyc_driver_ctx_impl * ictx)
for ( ; nread; ) {
status = ntapi->pty_write(
ictx->cctx.hpts,
- hwait,0,0,
- &iosb,
- ch,nread,
+ hwait,0,0,&iosb,
+ ch,(uint32_t)nread,
0,0);
if (status == NT_STATUS_PENDING)