[Bug 10758] myst4 crashes during startup

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Oct 1 17:29:29 CDT 2008


http://bugs.winehq.org/show_bug.cgi?id=10758





--- Comment #6 from Jim Cameron <jim_24601 at btinternet.com>  2008-10-01 17:29:29 ---
Sorry, my terminal mangled that patch a bit. Here it is again.


diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 409c7a1..0546f00 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -6648,7 +6648,12 @@ static HRESULT WINAPI
IWineD3DDeviceImpl_SetDepthStencilSurface(IWineD3DDevice *
         tmp = This->stencilBufferTarget;
         This->stencilBufferTarget = pNewZStencil;
         /* should we be calling the parent or the wined3d surface? */
-        if (NULL != This->stencilBufferTarget)
IWineD3DSurface_AddRef(This->stencilBufferTarget);
+        if (NULL != This->stencilBufferTarget)
+        {
+            IUnknown* parent;
+            IWineD3DSurface_GetParent(This->stencilBufferTarget, &parent);
+            IUnknown_AddRef(parent);
+        }
         if (NULL != tmp) IWineD3DSurface_Release(tmp);
         hr = WINED3D_OK;


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list