mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-11 15:17:17 +00:00
wined3d: Don't crash in CreateAdditionalSwapChain() if the context array wasn't allocated yet.
This commit is contained in:
parent
e2399a969f
commit
2bb7aa7252
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue