mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 09:30:56 +00:00
kernel32: Wait on pipe handle in TransactNamedPipe if needed.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
b114bd07b1
commit
4fc5aff509
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue