From 05fce2cf620f876f92827ea2487c7939eb3eb358 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sat, 24 Jun 2000 12:50:08 +0000 Subject: [PATCH] Create xlib ddsurfaces with correct reference counts. --- dlls/ddraw/ddraw/x11.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/ddraw/ddraw/x11.c b/dlls/ddraw/ddraw/x11.c index cc3c4d8f4b..569666846c 100644 --- a/dlls/ddraw/ddraw/x11.c +++ b/dlls/ddraw/ddraw/x11.c @@ -340,7 +340,7 @@ static HRESULT WINAPI Xlib_IDirectDraw2Impl_CreateSurface( sizeof(IDirectDrawSurfaceImpl) ); dsurf = (IDirectDrawSurfaceImpl*)*lpdsf; - dsurf->ref = 2; + dsurf->ref = 1; dsurf->private = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, @@ -403,7 +403,7 @@ static HRESULT WINAPI Xlib_IDirectDraw2Impl_CreateSurface( IDirectDraw2_AddRef(iface); back->s.ddraw = This; - back->ref = 2; + back->ref = 1; ICOM_VTBL(back)=(ICOM_VTABLE(IDirectDrawSurface4)*)&xlib_dds4vt; /* Copy the surface description from the front buffer */ back->s.surface_desc = dsurf->s.surface_desc; -- 2.32.0.93.g670b81a890