Fixed the test for named pipe creation

All credits goes to @akallabeth.
This commit is contained in:
David FORT 2015-03-16 11:19:45 +01:00
parent a9020a34c2
commit bfb8593590

View File

@ -402,7 +402,7 @@ static void* named_pipe_single_thread(void* arg)
goto out;
}
if (WriteFile(clients[i], sndbuf, sizeof(sndbuf), &dwWritten, NULL))
if (WriteFile(servers[i], sndbuf, sizeof(sndbuf), &dwWritten, NULL))
{
printf("%s: Error WriteFile on server end should have failed after CloseHandle on client\n", __FUNCTION__);
goto out;