Commit 4fc5aff5 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

kernel32: Wait on pipe handle in TransactNamedPipe if needed.

parent b114bd07
...@@ -1746,6 +1746,11 @@ BOOL WINAPI TransactNamedPipe( ...@@ -1746,6 +1746,11 @@ BOOL WINAPI TransactNamedPipe(
status = NtFsControlFile(handle, event, NULL, cvalue, iosb, FSCTL_PIPE_TRANSCEIVE, status = NtFsControlFile(handle, event, NULL, cvalue, iosb, FSCTL_PIPE_TRANSCEIVE,
write_buf, write_size, read_buf, read_size); 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; if (bytes_read) *bytes_read = overlapped && status ? 0 : iosb->Information;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment