Commit f5636dea authored by Detlef Riekenberg's avatar Detlef Riekenberg Committed by Alexandre Julliard

kernel32/pipe: Avoid a crash in a test.

parent b3c5062f
...@@ -3572,10 +3572,12 @@ static void test_namedpipe_session_id(void) ...@@ -3572,10 +3572,12 @@ static void test_namedpipe_session_id(void)
create_overlapped_pipe(PIPE_TYPE_BYTE, &client, &server); create_overlapped_pipe(PIPE_TYPE_BYTE, &client, &server);
if (0) /* crashes on recent Windows */
{
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
ret = pGetNamedPipeClientSessionId(server, NULL); ret = pGetNamedPipeClientSessionId(server, NULL);
ok(!ret, "success\n"); ok(!ret, "success\n");
todo_wine ok(GetLastError() == ERROR_INSUFFICIENT_BUFFER, "got %u\n", GetLastError()); }
id = 0; id = 0;
ret = pGetNamedPipeClientSessionId(server, &id); ret = pGetNamedPipeClientSessionId(server, &id);
......
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