fix crash in JazzJackrabbit 2
This commit is contained in:
parent
0cf0533654
commit
a3afe9e598
1 changed files with 11 additions and 0 deletions
|
@ -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…
Reference in a new issue