d3d9: Set IDirect3DDevice9Impl_GetVertexShader return value to NULL on error.
This commit is contained in:
parent
878c2a8332
commit
defe641725
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue