Module: wine Branch: master Commit: d9f3ea328785d4146a095ce2efbdbb7c1f69f1cf URL: https://source.winehq.org/git/wine.git/?a=commit;h=d9f3ea328785d4146a095ce2e...
Author: Zebediah Figura zfigura@codeweavers.com Date: Wed Feb 9 12:06:52 2022 -0600
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
---
dlls/ws2_32/tests/afd.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/dlls/ws2_32/tests/afd.c b/dlls/ws2_32/tests/afd.c index 55029bfd30d..d8a78947de4 100644 --- a/dlls/ws2_32/tests/afd.c +++ b/dlls/ws2_32/tests/afd.c @@ -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;