Commit f6813e55 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

d3d9: Fix type used to store return value in IDirect3DDevice9Impl_GetNPatchMode.

It should be a float, not an HRESULT.
parent d939367a
......@@ -1168,13 +1168,13 @@ static HRESULT WINAPI IDirect3DDevice9Impl_SetNPatchMode(LPDIRECT3DDEVICE9EX i
static float WINAPI IDirect3DDevice9Impl_GetNPatchMode(LPDIRECT3DDEVICE9EX iface) {
IDirect3DDevice9Impl *This = (IDirect3DDevice9Impl *)iface;
HRESULT hr;
float ret;
TRACE("(%p) Relay\n" , This);
EnterCriticalSection(&d3d9_cs);
hr = IWineD3DDevice_GetNPatchMode(This->WineD3DDevice);
ret = IWineD3DDevice_GetNPatchMode(This->WineD3DDevice);
LeaveCriticalSection(&d3d9_cs);
return hr;
return ret;
}
static HRESULT WINAPI IDirect3DDevice9Impl_DrawPrimitive(LPDIRECT3DDEVICE9EX iface, D3DPRIMITIVETYPE PrimitiveType, UINT StartVertex, UINT PrimitiveCount) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment