From 72aeced76d86fdb2b37ce0d078be040dddd1cdb8 Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 26 Dec 2016 08:16:54 +0000 Subject: ptyc_dbg_raw(): properly invoke ntapi's pty_write() (uint32_t bytes). --- src/debug/ptyc_dbg_raw.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/debug/ptyc_dbg_raw.c b/src/debug/ptyc_dbg_raw.c index 8d30d3e..cd7bb62 100644 --- a/src/debug/ptyc_dbg_raw.c +++ b/src/debug/ptyc_dbg_raw.c @@ -52,9 +52,8 @@ int __stdcall ptyc_dbg_raw(struct ptyc_driver_ctx_impl * ictx) for (ch=xch; nbytes; ) { status = ntapi->pty_write( ictx->cctx.hpts, - 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