From 4d974e3930c57600e1f09e3ca888b10793521dd3 Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 26 Dec 2016 08:13:07 +0000 Subject: ptyc_cat(): properly invoke ntapi's pty_write() (uint32_t bytes). --- src/debug/ptyc_dbg_cat.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/debug/ptyc_dbg_cat.c b/src/debug/ptyc_dbg_cat.c index e8cfb16..6071622 100644 --- a/src/debug/ptyc_dbg_cat.c +++ b/src/debug/ptyc_dbg_cat.c @@ -20,7 +20,7 @@ static int32_t ptyc_cat( int32_t status; void * hfile; nt_iosb iosb; - intptr_t nread; + uintptr_t nread; uintptr_t buffer[32768/sizeof(uintptr_t)]; char * ch; @@ -41,9 +41,8 @@ static int32_t ptyc_cat( for ( ; nread; ) { status = ntapi->pty_write( dctx->cctx->hpts, - hevent,0,0, - &iosb, - ch,nread, + hevent,0,0,&iosb, + ch,(uint32_t)nread, 0,0); if (status == NT_STATUS_PENDING) -- cgit v1.2.3