Detlef Riekenberg : kernel32/pipe: Avoid a crash in a test.
Alexandre Julliard
julliard at winehq.org
Fri Apr 26 15:31:03 CDT 2019
Module: wine
Branch: master
Commit: f5636dea60492aba0c47c565d4384baeff23495a
URL: https://source.winehq.org/git/wine.git/?a=commit;h=f5636dea60492aba0c47c565d4384baeff23495a
Author: Detlef Riekenberg <wine.dev at web.de>
Date: Tue Apr 23 19:19:21 2019 +0200
kernel32/pipe: Avoid a crash in a test.
Signed-off-by: Detlef Riekenberg <wine.dev at web.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/kernel32/tests/pipe.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/dlls/kernel32/tests/pipe.c b/dlls/kernel32/tests/pipe.c
index 3f30cce..cab069d 100644
--- a/dlls/kernel32/tests/pipe.c
+++ b/dlls/kernel32/tests/pipe.c
@@ -3572,10 +3572,12 @@ static void test_namedpipe_session_id(void)
create_overlapped_pipe(PIPE_TYPE_BYTE, &client, &server);
- SetLastError(0xdeadbeef);
- ret = pGetNamedPipeClientSessionId(server, NULL);
- ok(!ret, "success\n");
- todo_wine ok(GetLastError() == ERROR_INSUFFICIENT_BUFFER, "got %u\n", GetLastError());
+ if (0) /* crashes on recent Windows */
+ {
+ SetLastError(0xdeadbeef);
+ ret = pGetNamedPipeClientSessionId(server, NULL);
+ ok(!ret, "success\n");
+ }
id = 0;
ret = pGetNamedPipeClientSessionId(server, &id);
More information about the wine-cvs
mailing list