ddraw: Set lplpDirect3DViewport3 to NULL before returning an error
(found by Smatch)
James Hawkins
truiken at gmail.com
Thu Oct 5 21:57:48 CDT 2006
Hi,
Changelog:
* Set lplpDirect3DViewport3 to NULL before returning an error.
dlls/ddraw/device.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
--
James Hawkins
-------------- next part --------------
diff --git a/dlls/ddraw/device.c b/dlls/ddraw/device.c
index c9d5854..f0f5ec9 100644
--- a/dlls/ddraw/device.c
+++ b/dlls/ddraw/device.c
@@ -903,8 +903,8 @@ IDirect3DDeviceImpl_3_NextViewport(IDire
if(!vp)
{
- return DDERR_INVALIDPARAMS;
*lplpDirect3DViewport3 = NULL;
+ return DDERR_INVALIDPARAMS;
}
--
1.4.2.1
More information about the wine-patches
mailing list