Commit a55da88d authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

wined3d: Do not addref a NULL backbuffer in IWineD3DSwapChain::GetBackBuffer.

parent 00598e49
......@@ -382,7 +382,7 @@ HRESULT WINAPI IWineD3DSwapChainImpl_GetBackBuffer(IWineD3DSwapChain *iface, UIN
}
/* Note inc ref on returned surface */
IWineD3DSurface_AddRef(*ppBackBuffer);
if(*ppBackBuffer) IWineD3DSurface_AddRef(*ppBackBuffer);
return WINED3D_OK;
}
......
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