From 320aac97e4a2ef3983cb81e353c3bf2e4cd237c2 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Sun, 17 Aug 2008 18:27:15 +0100 Subject: [PATCH] d3d9: Fix variable type in IDirect3DDevice9Impl_GetSoftwareVertexProcessing. IWineD3DDevice_GetSoftwareVertexProcessing returns a BOOL, not an HRESULT. --- dlls/d3d9/device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/d3d9/device.c b/dlls/d3d9/device.c index 7376525cda8..2b133c12158 100644 --- a/dlls/d3d9/device.c +++ b/dlls/d3d9/device.c @@ -1149,13 +1149,13 @@ static HRESULT WINAPI IDirect3DDevice9Impl_SetSoftwareVertexProcessing(LPDIREC static BOOL WINAPI IDirect3DDevice9Impl_GetSoftwareVertexProcessing(LPDIRECT3DDEVICE9EX iface) { IDirect3DDevice9Impl *This = (IDirect3DDevice9Impl *)iface; - HRESULT hr; + BOOL ret; TRACE("(%p) Relay\n" , This); EnterCriticalSection(&d3d9_cs); - hr = IWineD3DDevice_GetSoftwareVertexProcessing(This->WineD3DDevice); + ret = IWineD3DDevice_GetSoftwareVertexProcessing(This->WineD3DDevice); LeaveCriticalSection(&d3d9_cs); - return hr; + return ret; } static HRESULT WINAPI IDirect3DDevice9Impl_SetNPatchMode(LPDIRECT3DDEVICE9EX iface, float nSegments) {