Skip to content
Snippets Groups Projects
Commit 4fc5aff5 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard
Browse files

kernel32: Wait on pipe handle in TransactNamedPipe if needed.

parent b114bd07
No related branches found
No related tags found
No related merge requests found
......@@ -1746,6 +1746,11 @@ BOOL WINAPI TransactNamedPipe(
status = NtFsControlFile(handle, event, NULL, cvalue, iosb, FSCTL_PIPE_TRANSCEIVE,
write_buf, write_size, read_buf, read_size);
if (status == STATUS_PENDING && !overlapped)
{
WaitForSingleObject(handle, INFINITE);
status = iosb->u.Status;
}
if (bytes_read) *bytes_read = overlapped && status ? 0 : iosb->Information;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment