dplayx: Fix the initial refcount of the IDPLobbySPImpl object.

Michael Stefaniuc mstefani at redhat.de
Wed Sep 4 16:45:28 CDT 2013


---
 dlls/dplayx/lobbysp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/dplayx/lobbysp.c b/dlls/dplayx/lobbysp.c
index 72198da..3528f94 100644
--- a/dlls/dplayx/lobbysp.c
+++ b/dlls/dplayx/lobbysp.c
@@ -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 );
-- 
1.8.3.1



More information about the wine-patches mailing list