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

This commit is contained in:
Stefan Dösinger 2006-05-23 15:30:15 +02:00 committed by Alexandre Julliard
parent 00598e49cf
commit a55da88d0b
1 changed files with 1 additions and 1 deletions

View File

@ -382,7 +382,7 @@ HRESULT WINAPI IWineD3DSwapChainImpl_GetBackBuffer(IWineD3DSwapChain *iface, UIN
} }
/* Note inc ref on returned surface */ /* Note inc ref on returned surface */
IWineD3DSurface_AddRef(*ppBackBuffer); if(*ppBackBuffer) IWineD3DSurface_AddRef(*ppBackBuffer);
return WINED3D_OK; return WINED3D_OK;
} }