Henri Verbeet : d3d9: Check the correct swapchain in IDirect3DDevice9Impl_GetSwapChain() (LLVM/ Clang).
Alexandre Julliard
julliard at winehq.org
Fri Jan 28 12:30:12 CST 2011
Module: wine
Branch: master
Commit: 69ea0884abc52a36894013db4d5e60bf90c63010
URL: http://source.winehq.org/git/wine.git/?a=commit;h=69ea0884abc52a36894013db4d5e60bf90c63010
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Thu Jan 27 20:11:11 2011 +0100
d3d9: Check the correct swapchain in IDirect3DDevice9Impl_GetSwapChain() (LLVM/Clang).
---
dlls/d3d9/device.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/d3d9/device.c b/dlls/d3d9/device.c
index d453350..ed00d67 100644
--- a/dlls/d3d9/device.c
+++ b/dlls/d3d9/device.c
@@ -498,7 +498,7 @@ static HRESULT WINAPI DECLSPEC_HOTPATCH IDirect3DDevice9Impl_GetSwapChain(IDirec
wined3d_mutex_lock();
hr = IWineD3DDevice_GetSwapChain(((IDirect3DDevice9Impl *)iface)->WineD3DDevice,
swapchain_idx, &wined3d_swapchain);
- if (SUCCEEDED(hr) && swapchain)
+ if (SUCCEEDED(hr) && wined3d_swapchain)
{
*swapchain = IWineD3DSwapChain_GetParent(wined3d_swapchain);
IDirect3DSwapChain9_AddRef(*swapchain);
More information about the wine-cvs
mailing list