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)
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);
......
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