Aric Stewart : d3d8: Initialize IDirect3DDevice8 *device to NULL in case of immediate cleanup ( Coverity 795).
Alexandre Julliard
julliard at winehq.org
Tue Oct 7 08:54:27 CDT 2008
Module: wine
Branch: master
Commit: f7cacc1f0933a5483574174d557843b82a3ddb31
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f7cacc1f0933a5483574174d557843b82a3ddb31
Author: Aric Stewart <aric at codeweavers.com>
Date: Sun Oct 5 11:52:52 2008 -0500
d3d8: Initialize IDirect3DDevice8 *device to NULL in case of immediate cleanup (Coverity 795).
---
dlls/d3d8/tests/device.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/d3d8/tests/device.c b/dlls/d3d8/tests/device.c
index 1909038..fbbdf1d 100644
--- a/dlls/d3d8/tests/device.c
+++ b/dlls/d3d8/tests/device.c
@@ -1288,7 +1288,7 @@ static void test_depth_stencil_reset(void)
D3DPRESENT_PARAMETERS present_parameters;
D3DDISPLAYMODE display_mode;
IDirect3DSurface8 *surface;
- IDirect3DDevice8 *device;
+ IDirect3DDevice8 *device = NULL;
IDirect3D8 *d3d8;
HRESULT hr;
HWND hwnd;
More information about the wine-cvs
mailing list