d3d9: Initialize hr (Coverity).

This commit is contained in:
Marcus Meissner 2009-01-26 22:16:21 +01:00 committed by Alexandre Julliard
parent d31828b500
commit ace65a527f
2 changed files with 4 additions and 1 deletions

View File

@ -1338,7 +1338,7 @@ static IDirect3DVertexDeclaration9 *getConvertedDecl(IDirect3DDevice9Impl *This,
static HRESULT WINAPI IDirect3DDevice9Impl_SetFVF(LPDIRECT3DDEVICE9EX iface, DWORD FVF) {
IDirect3DDevice9Impl *This = (IDirect3DDevice9Impl *)iface;
HRESULT hr;
HRESULT hr = S_OK;
TRACE("(%p) Relay\n" , This);
EnterCriticalSection(&d3d9_cs);

View File

@ -292,6 +292,9 @@ static void lighting_test(IDirect3DDevice9 *device)
hr = IDirect3DDevice9_SetRenderState(device, D3DRS_COLORWRITEENABLE, D3DCOLORWRITEENABLE_RED | D3DCOLORWRITEENABLE_GREEN | D3DCOLORWRITEENABLE_BLUE);
ok(hr == D3D_OK, "IDirect3DDevice9_SetRenderState failed with %08x\n", hr);
hr = IDirect3DDevice9_SetFVF(device, 0);
ok(hr == D3D_OK, "IDirect3DDevice9_SetFVF returned %08x\n", hr);
hr = IDirect3DDevice9_SetFVF(device, fvf);
ok(hr == D3D_OK, "IDirect3DDevice9_SetFVF returned %08x\n", hr);