Commit 5d760b1c authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Check for NULL flipchain and just return the current surface if it

happens.
parent fb2273be
...@@ -88,6 +88,11 @@ IDirectDrawSurface4Impl* _common_find_flipto( ...@@ -88,6 +88,11 @@ IDirectDrawSurface4Impl* _common_find_flipto(
int i,j,flipable=0; int i,j,flipable=0;
struct _surface_chain *chain = This->s.chain; struct _surface_chain *chain = This->s.chain;
if (!chain) {
ERR("No flip chain? -> returning This.\n");
return This;
}
/* if there was no override flipto, look for current backbuffer */ /* if there was no override flipto, look for current backbuffer */
if (!flipto) { if (!flipto) {
/* walk the flip chain looking for backbuffer */ /* walk the flip chain looking for backbuffer */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment