Commit 0fb3cb93 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

d3d9: Don't crash in GetFVF() if a NULL vertex declaration is set.

parent c069474e
......@@ -1333,7 +1333,7 @@ static HRESULT WINAPI IDirect3DDevice9Impl_GetFVF(LPDIRECT3DDEVICE9EX iface, DWO
return hr;
}
*pFVF = ((IDirect3DVertexDeclaration9Impl *)decl)->convFVF;
*pFVF = decl ? ((IDirect3DVertexDeclaration9Impl *)decl)->convFVF : 0;
TRACE("Returning FVF %#x\n", *pFVF);
return hr;
......
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