Commit defe6417 authored by Vincent Pelletier's avatar Vincent Pelletier Committed by Alexandre Julliard

d3d9: Set IDirect3DDevice9Impl_GetVertexShader return value to NULL on error.

parent 878c2a83
...@@ -170,6 +170,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_GetVertexShader(LPDIRECT3DDEVICE9EX iface, I ...@@ -170,6 +170,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_GetVertexShader(LPDIRECT3DDEVICE9EX iface, I
hrc = IWineD3DVertexShader_GetParent(pShader, (IUnknown **)ppShader); hrc = IWineD3DVertexShader_GetParent(pShader, (IUnknown **)ppShader);
IWineD3DVertexShader_Release(pShader); IWineD3DVertexShader_Release(pShader);
} else { } else {
*ppShader = NULL;
WARN("(%p) : Call to IWineD3DDevice_GetVertexShader failed %u (device %p)\n", This, hrc, This->WineD3DDevice); WARN("(%p) : Call to IWineD3DDevice_GetVertexShader failed %u (device %p)\n", This, hrc, This->WineD3DDevice);
} }
LeaveCriticalSection(&d3d9_cs); LeaveCriticalSection(&d3d9_cs);
......
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