d3d9/tests: Fix use of uninitialized variable (Coverity)

Andrew Talbot Andrew.Talbot at talbotville.com
Sat Jun 23 09:40:48 CDT 2007


This patch should fix Coverity bug CID-561.

-- Andy.
---
Changelog:
    d3d9/tests: Fix use of uninitialized variable (Coverity).

diff -urN a/dlls/d3d9/tests/device.c b/dlls/d3d9/tests/device.c
--- a/dlls/d3d9/tests/device.c	2007-06-04 14:27:26.000000000 +0100
+++ b/dlls/d3d9/tests/device.c	2007-06-23 15:35:43.000000000 +0100
@@ -1263,7 +1263,7 @@
     IDirect3DVertexBuffer9 *vertex_buffer = NULL;
     IDirect3DIndexBuffer9 *index_buffer = NULL;
     D3DPRESENT_PARAMETERS present_parameters;
-    IDirect3DDevice9 *device;
+    IDirect3DDevice9 *device = NULL;
     IDirect3D9 *d3d9;
     HRESULT hr;
     HWND hwnd;



More information about the wine-patches mailing list