Yet another small fix....
Lionel Ulmer
lionel.ulmer at free.fr
Thu Nov 28 16:00:31 CST 2002
Hi all,
This time, we forgot to AddRef an interface sent to the user...
Changelog:
- do not forget to AddRef the Direct3D interface returned
Lionel
PS: now I crash on a segfault :-)
--
Lionel Ulmer - http://www.bbrox.org/
-------------- next part --------------
Index: dlls/ddraw/d3ddevice/main.c
===================================================================
RCS file: /home/wine/wine/dlls/ddraw/d3ddevice/main.c,v
retrieving revision 1.13
diff -u -r1.13 main.c
--- dlls/ddraw/d3ddevice/main.c 21 Nov 2002 21:04:16 -0000 1.13
+++ dlls/ddraw/d3ddevice/main.c 28 Nov 2002 21:58:48 -0000
@@ -145,6 +145,8 @@
TRACE("(%p/%p)->(%p)\n", This, iface, lplpDirect3D3);
*lplpDirect3D3 = ICOM_INTERFACE(This->d3d, IDirect3D7);
+ IDirect3D7_AddRef(ICOM_INTERFACE(This->d3d, IDirect3D7));
+
TRACE(" returning interface %p\n", *lplpDirect3D3);
return DD_OK;
}
More information about the wine-patches
mailing list