[PATCH] d3d9: initialize hr (coverity)
Marcus Meissner
marcus at jet.franken.de
Mon Jan 26 15:16:21 CST 2009
Spotted in CID 864 that hr is used uninitialized
in a codepath. Using S_OK as default return.
Ciao, Marcus
---
dlls/d3d9/device.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/d3d9/device.c b/dlls/d3d9/device.c
index aff0643..9c5290d 100644
--- a/dlls/d3d9/device.c
+++ b/dlls/d3d9/device.c
@@ -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);
--
1.5.6
More information about the wine-patches
mailing list