Alistair Leslie-Hughes : dpnet/tests: Show that async handlers are per object.
Alexandre Julliard
julliard at winehq.org
Fri Mar 17 15:19:47 CDT 2017
Module: wine
Branch: master
Commit: 4239e2156ba1d066561f30936637b888a273d92a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4239e2156ba1d066561f30936637b888a273d92a
Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date: Thu Mar 9 04:13:54 2017 +0000
dpnet/tests: Show that async handlers are per object.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/dpnet/tests/client.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/dlls/dpnet/tests/client.c b/dlls/dpnet/tests/client.c
index 6503bc3..4415503 100644
--- a/dlls/dpnet/tests/client.c
+++ b/dlls/dpnet/tests/client.c
@@ -306,6 +306,13 @@ static void test_enum_hosts(void)
todo_wine ok(lastAsyncCode == DPNERR_USERCANCEL, "got 0x%08x\n", lastAsyncCode);
todo_wine ok(lastAsyncHandle == async, "got 0x%08x\n", async);
+ hr = IDirectPlay8Client_Initialize(client2, NULL, DirectPlayMessageHandler, 0);
+ ok(hr == S_OK, "got %x\n", hr);
+
+ /* Show that handlers are per object. */
+ hr = IDirectPlay8Client_CancelAsyncOperation(client2, async2, 0);
+ todo_wine ok(hr == DPNERR_INVALIDHANDLE, "IDirectPlay8Client_CancelAsyncOperation failed with 0x%08x\n", hr);
+
lastAsyncCode = E_FAIL;
lastAsyncHandle = 0xdeadbeef;
hr = IDirectPlay8Client_CancelAsyncOperation(client, async2, 0);
More information about the wine-cvs
mailing list