d3d9: Check the correct swapchain in IDirect3DDevice9Impl_GetSwapChain() (LLVM/Clang).

This commit is contained in:
Henri Verbeet 2011-01-27 20:11:11 +01:00 committed by Alexandre Julliard
parent 1b726498ed
commit 69ea0884ab
1 changed files with 1 additions and 1 deletions

View File

@ -498,7 +498,7 @@ static HRESULT WINAPI DECLSPEC_HOTPATCH IDirect3DDevice9Impl_GetSwapChain(IDirec
wined3d_mutex_lock(); wined3d_mutex_lock();
hr = IWineD3DDevice_GetSwapChain(((IDirect3DDevice9Impl *)iface)->WineD3DDevice, hr = IWineD3DDevice_GetSwapChain(((IDirect3DDevice9Impl *)iface)->WineD3DDevice,
swapchain_idx, &wined3d_swapchain); swapchain_idx, &wined3d_swapchain);
if (SUCCEEDED(hr) && swapchain) if (SUCCEEDED(hr) && wined3d_swapchain)
{ {
*swapchain = IWineD3DSwapChain_GetParent(wined3d_swapchain); *swapchain = IWineD3DSwapChain_GetParent(wined3d_swapchain);
IDirect3DSwapChain9_AddRef(*swapchain); IDirect3DSwapChain9_AddRef(*swapchain);