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:
parent
0cf0533654
commit
a3afe9e598
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user