1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

fix crash in JazzJackrabbit 2

This commit is contained in:
FunkyFr3sh 2024-05-23 07:12:33 +02:00
parent 0cf0533654
commit a3afe9e598

View File

@ -826,6 +826,17 @@ HRESULT dds_GetAttachedSurface(IDirectDrawSurfaceImpl* This, LPDDSCAPS lpDdsCaps
return DD_OK;
}
if (lpDdsCaps->dwCaps & DDSCAPS_FLIP)
{
if (This->backbuffer)
{
IDirectDrawSurface_AddRef(This->backbuffer);
*lpDDsurface = This->backbuffer;
}
return DD_OK;
}
return DDERR_NOTFOUND;
}