From 8ae70e454f49018b69f9d9455de339d288980cbc Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Tue, 30 Oct 2018 14:05:43 +0100 Subject: [PATCH] fix DDSCAPS_PRIMARYSURFACE check in surface->release --- src/surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/surface.c b/src/surface.c index 5e5d8f0..5482331 100644 --- a/src/surface.c +++ b/src/surface.c @@ -46,7 +46,7 @@ ULONG __stdcall ddraw_surface_Release(IDirectDrawSurfaceImpl *This) if(This->Ref == 0) { - if(This->caps == DDSCAPS_PRIMARYSURFACE) + if(This->caps & DDSCAPS_PRIMARYSURFACE) { EnterCriticalSection(&ddraw->cs); ddraw->primary = NULL;