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:
parent
5ea076752b
commit
8ae70e454f
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user