[PATCH] check for NULL
Marcus Meissner
marcus at jet.franken.de
Sat Jan 26 02:40:42 CST 2008
Hi,
Coverity CID 417, spotted potential NULL dereference
which we checked for some lines before too.
Ciao, Marcus
---
dlls/atl/atl_ax.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/atl/atl_ax.c b/dlls/atl/atl_ax.c
index 64b338b..6ffccde 100644
--- a/dlls/atl/atl_ax.c
+++ b/dlls/atl/atl_ax.c
@@ -1026,7 +1026,8 @@ HRESULT WINAPI AtlAxCreateControlEx(LPCOLESTR lpszName, HWND hWnd,
IUnknown_AddRef( pUnkControl );
}
- IUnknown_Release( pUnkControl );
+ if ( pUnkControl )
+ IUnknown_Release( pUnkControl );
if ( pContainer )
IUnknown_Release( pContainer );
--
1.5.2.4
More information about the wine-patches
mailing list