[PATCH 5/5] ddraw: Separate IDirectDrawSurface2 reference count.

Alexandre Julliard julliard at winehq.org
Wed Jun 15 04:35:20 CDT 2011


rbarkauskas at codeweavers.com writes:

> @@ -766,6 +766,8 @@ DestroyCallback(IDirectDrawSurface7 *surf,
>  
>      /* Destroy the surface */
>      while(ref) ref = IDirectDrawSurface7_Release(surf);
> +    ref = Impl->ref2;
> +    while(ref) ref = IDirectDrawSurface2_Release(&Impl->IDirectDrawSurface2_iface);

Ref counts should only be accessed through the interlocked functions.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list