ws2_32/tests: Cancel a call that currently incorrectly returns STATUS_PENDING.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2a38dab2d2
commit
d9f3ea3287
|
@ -1387,6 +1387,12 @@ static void test_recv(void)
|
|||
todo_wine ok(!io.Status, "got %#x\n", io.Status);
|
||||
todo_wine ok(io.Information == 1, "got %#Ix\n", io.Information);
|
||||
todo_wine ok(buffer[0] == 'a', "got %s\n", debugstr_an(buffer, io.Information));
|
||||
if (ret == STATUS_PENDING)
|
||||
{
|
||||
CancelIo((HANDLE)client);
|
||||
ret = WaitForSingleObject(event, 100);
|
||||
ok(!ret, "wait timed out\n");
|
||||
}
|
||||
|
||||
params.msg_flags = AFD_MSG_NOT_OOB | AFD_MSG_PEEK;
|
||||
|
||||
|
|
Loading…
Reference in New Issue