1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-24 17:49:52 +01:00

fix DDSCAPS_PRIMARYSURFACE check in surface->release

This commit is contained in:
FunkyFr3sh 2018-10-30 14:05:43 +01:00
parent 5ea076752b
commit 8ae70e454f

View File

@ -46,7 +46,7 @@ ULONG __stdcall ddraw_surface_Release(IDirectDrawSurfaceImpl *This)
if(This->Ref == 0) if(This->Ref == 0)
{ {
if(This->caps == DDSCAPS_PRIMARYSURFACE) if(This->caps & DDSCAPS_PRIMARYSURFACE)
{ {
EnterCriticalSection(&ddraw->cs); EnterCriticalSection(&ddraw->cs);
ddraw->primary = NULL; ddraw->primary = NULL;