[PATCH 4/5] ddrawex: Forward to the wrapped surface instead of recursing forever.

Michael Stefaniuc mstefani at redhat.de
Fri Aug 17 09:15:15 CDT 2012


---
 dlls/ddrawex/surface.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/ddrawex/surface.c b/dlls/ddrawex/surface.c
index ed9e374..b25639a 100644
--- a/dlls/ddrawex/surface.c
+++ b/dlls/ddrawex/surface.c
@@ -373,7 +373,7 @@ static HRESULT WINAPI IDirectDrawSurface4Impl_GetAttachedSurface(IDirectDrawSurf
     HRESULT hr;
     TRACE("(%p)->(%p,%p)\n", This, Caps, Surface);
 
-    hr = IDirectDrawSurface4_GetAttachedSurface(dds4_from_impl(This), Caps, &inner);
+    hr = IDirectDrawSurface4_GetAttachedSurface(This->parent, Caps, &inner);
     if(SUCCEEDED(hr))
     {
         *Surface = dds_get_outer(inner);
-- 
1.7.6.5



More information about the wine-patches mailing list