From 72aeced76d86fdb2b37ce0d078be040dddd1cdb8 Mon Sep 17 00:00:00 2001 From: midipix Date: Dec 26 2016 08:47:53 +0000 Subject: ptyc_dbg_raw(): properly invoke ntapi's pty_write() (uint32_t bytes). --- 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)