Module: wine Branch: master Commit: 320aac97e4a2ef3983cb81e353c3bf2e4cd237c2 URL: http://source.winehq.org/git/wine.git/?a=commit;h=320aac97e4a2ef3983cb81e353...
Author: Rob Shearman robertshearman@gmail.com Date: Sun Aug 17 18:27:15 2008 +0100
d3d9: Fix variable type in IDirect3DDevice9Impl_GetSoftwareVertexProcessing.
IWineD3DDevice_GetSoftwareVertexProcessing returns a BOOL, not an HRESULT.
---
dlls/d3d9/device.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/d3d9/device.c b/dlls/d3d9/device.c index 7376525..2b133c1 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) {