mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
d3d9: Set IDirect3DDevice9Impl_GetVertexShader return value to NULL on error.
This commit is contained in:
parent
878c2a8332
commit
defe641725
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue