Jacek Caban : kernel32: Wait on pipe handle in TransactNamedPipe if needed.
Alexandre Julliard
julliard at winehq.org
Tue Oct 30 14:19:35 CDT 2018
Module: wine
Branch: master
Commit: 4fc5aff50981687a7cb7c3599a47da7cbb44d4e3
URL: https://source.winehq.org/git/wine.git/?a=commit;h=4fc5aff50981687a7cb7c3599a47da7cbb44d4e3
Author: Jacek Caban <jacek at codeweavers.com>
Date: Tue Oct 30 16:08:27 2018 +0100
kernel32: Wait on pipe handle in TransactNamedPipe if needed.
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/kernel32/sync.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dlls/kernel32/sync.c b/dlls/kernel32/sync.c
index f3bd962..6d47d70 100644
--- a/dlls/kernel32/sync.c
+++ b/dlls/kernel32/sync.c
@@ -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;
More information about the wine-cvs
mailing list