d3d9: Set IDirect3DDevice9Impl_GetVertexShader return value to NULL on error.

This commit is contained in:
Vincent Pelletier 2008-12-22 23:25:04 +01:00 committed by Alexandre Julliard
parent 878c2a8332
commit defe641725

View file

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