summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-03-02 20:53:51 -0500
committermidipix <writeonce@midipix.org>2016-03-02 20:53:51 -0500
commitea6298c9b4f17fa22be5b2b0e1ee7965b0e5cb66 (patch)
tree2ca7ce53c07fded7f5a91d492da067aefb9ab363 /src
parentd4e5b9c4f1f205e3eff880aef8d52cfe9129124c (diff)
downloadntapi-ea6298c9b4f17fa22be5b2b0e1ee7965b0e5cb66.tar.bz2
ntapi-ea6298c9b4f17fa22be5b2b0e1ee7965b0e5cb66.tar.xz
__ntapi_pty_read_write(): defer thread-based pty ownership to posix layer.
Diffstat (limited to 'src')
-rw-r--r--src/pty/ntapi_pty_io.c3
1 files changed, 0 insertions, 3 deletions
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;