mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 06:04:49 +01:00
fix DDSCAPS_PRIMARYSURFACE check in surface->release
This commit is contained in:
parent
5ea076752b
commit
8ae70e454f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user