From ea6298c9b4f17fa22be5b2b0e1ee7965b0e5cb66 Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 2 Mar 2016 20:53:51 -0500 Subject: __ntapi_pty_read_write(): defer thread-based pty ownership to posix layer. --- src/pty/ntapi_pty_io.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src') diff --git a/src/pty/ntapi_pty_io.c b/src/pty/ntapi_pty_io.c index 4d73348..21e3b70 100644 --- a/src/pty/ntapi_pty_io.c +++ b/src/pty/ntapi_pty_io.c @@ -34,9 +34,6 @@ static int32_t __stdcall __ntapi_pty_read_write( if (offset && offset->quad) return NT_STATUS_INVALID_PARAMETER; - else if (__ntapi->tt_sync_block_lock(&pty->sync[mode],1,0,0)) - return NT_STATUS_RESOURCE_NOT_OWNED; - nbytes = nbytes <= pty->section_size / 2 ? nbytes : pty->section_size / 2; -- cgit v1.2.3