ddraw: Set lplpDirect3DViewport3 to NULL before returning an error (found by Smatch).

This commit is contained in:
James Hawkins 2006-10-05 19:57:48 -07:00 committed by Alexandre Julliard
parent 553bafd535
commit 1a922b6a38
1 changed files with 1 additions and 1 deletions

View File

@ -903,8 +903,8 @@ IDirect3DDeviceImpl_3_NextViewport(IDirect3DDevice3 *iface,
if(!vp)
{
return DDERR_INVALIDPARAMS;
*lplpDirect3DViewport3 = NULL;
return DDERR_INVALIDPARAMS;
}