dplayx: Fix the initial refcount of the IDPLobbySPImpl object.
This commit is contained in:
parent
a2ea406eee
commit
b9a2efdf24
|
@ -240,7 +240,7 @@ HRESULT dplobbysp_create( REFIID riid, void **ppv, IDirectPlayImpl *dp )
|
|||
return DPERR_OUTOFMEMORY;
|
||||
|
||||
obj->IDPLobbySP_iface.lpVtbl = &dpLobbySPVT;
|
||||
obj->ref = 0;
|
||||
obj->ref = 1;
|
||||
obj->dplay = dp;
|
||||
|
||||
hr = IDPLobbySP_QueryInterface( &obj->IDPLobbySP_iface, riid, ppv );
|
||||
|
|
Loading…
Reference in New Issue