Commit cf894d4c authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

dplayx: Add a separate refcount for IDirectPlay2A.

parent f546609d
...@@ -182,10 +182,11 @@ typedef struct tagDirectPlay2Data ...@@ -182,10 +182,11 @@ typedef struct tagDirectPlay2Data
typedef struct IDirectPlayImpl typedef struct IDirectPlayImpl
{ {
IDirectPlay2A IDirectPlay2A_iface;
IDirectPlay4A IDirectPlay4A_iface; IDirectPlay4A IDirectPlay4A_iface;
IDirectPlay4 IDirectPlay4_iface; IDirectPlay4 IDirectPlay4_iface;
LONG numIfaces; /* "in use interfaces" refcount */ LONG numIfaces; /* "in use interfaces" refcount */
LONG ref4A, ref4; LONG ref2A, ref4A, ref4;
CRITICAL_SECTION lock; CRITICAL_SECTION lock;
DirectPlay2Data *dp2; DirectPlay2Data *dp2;
} IDirectPlayImpl; } IDirectPlayImpl;
......
...@@ -6411,7 +6411,7 @@ static void test_COM(void) ...@@ -6411,7 +6411,7 @@ static void test_COM(void)
hr = IDirectPlayX_QueryInterface(dp4, &IID_IDirectPlay3A, (void**)&dp3A); hr = IDirectPlayX_QueryInterface(dp4, &IID_IDirectPlay3A, (void**)&dp3A);
ok(hr == S_OK, "QueryInterface for IID_IDirectPlay3A failed: %08x\n", hr); ok(hr == S_OK, "QueryInterface for IID_IDirectPlay3A failed: %08x\n", hr);
refcount = IDirectPlay3_AddRef(dp3A); refcount = IDirectPlay3_AddRef(dp3A);
todo_wine ok(refcount == 2, "refcount == %u, expected 2\n", refcount); ok(refcount == 2, "refcount == %u, expected 2\n", refcount);
IDirectPlay3_Release(dp3A); IDirectPlay3_Release(dp3A);
hr = IDirectPlayX_QueryInterface(dp4, &IID_IDirectPlay3, (void**)&dp3); hr = IDirectPlayX_QueryInterface(dp4, &IID_IDirectPlay3, (void**)&dp3);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment