dpnet/tests: Show that async handlers are per object.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alistair Leslie-Hughes 2017-03-09 04:13:54 +00:00 committed by Alexandre Julliard
parent 852cd999f3
commit 4239e2156b

View file

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