wined3d: Don't crash in CreateAdditionalSwapChain() if the context array wasn't allocated yet.

This commit is contained in:
Henri Verbeet 2008-10-15 13:35:31 +02:00 committed by Alexandre Julliard
parent e2399a969f
commit 2bb7aa7252

View file

@ -1677,7 +1677,7 @@ error:
HeapFree(GetProcessHeap(), 0, object->backBuffer);
object->backBuffer = NULL;
}
if(object->context[0])
if(object->context && object->context[0])
DestroyContext(This, object->context[0]);
if(object->frontBuffer) {
IWineD3DSurface_GetParent(object->frontBuffer, &bufferParent);