Jacek Caban : conhost/tests: Don't use inheritable handle for console pipe end.

Alexandre Julliard julliard at winehq.org
Thu Sep 24 15:49:06 CDT 2020


Module: wine
Branch: master
Commit: c440926547a8c790badce1b9bcdfcea7183ed1a0
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=c440926547a8c790badce1b9bcdfcea7183ed1a0

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Thu Sep 24 17:27:06 2020 +0200

conhost/tests: Don't use inheritable handle for console pipe end.

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 programs/conhost/tests/tty.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/programs/conhost/tests/tty.c b/programs/conhost/tests/tty.c
index 27912aa188..1e2f955072 100644
--- a/programs/conhost/tests/tty.c
+++ b/programs/conhost/tests/tty.c
@@ -1316,7 +1316,7 @@ static HPCON create_pseudo_console(HANDLE *console_pipe_end, HANDLE *child_proce
     ok(console_pipe != INVALID_HANDLE_VALUE, "CreateNamedPipeW failed: %u\n", GetLastError());
 
     *console_pipe_end = CreateFileW(L"\\\\.\\pipe\\pseudoconsoleconn", GENERIC_READ | GENERIC_WRITE,
-                                    0, &sec_attr, OPEN_EXISTING, FILE_FLAG_OVERLAPPED, NULL);
+                                    0, NULL, OPEN_EXISTING, FILE_FLAG_OVERLAPPED, NULL);
     ok(*console_pipe_end != INVALID_HANDLE_VALUE, "CreateFile failed: %u\n", GetLastError());
 
     child_pipe = CreateNamedPipeW(L"\\\\.\\pipe\\pseudoconsoleserver", PIPE_ACCESS_DUPLEX,




More information about the wine-cvs mailing list