Marcus Meissner : atl: Check for NULL.
Alexandre Julliard
julliard at winehq.org
Mon Feb 4 08:42:50 CST 2008
Module: wine
Branch: master
Commit: c46327b40cd16c09d0ad62acc3664b4fedbaed37
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c46327b40cd16c09d0ad62acc3664b4fedbaed37
Author: Marcus Meissner <marcus at jet.franken.de>
Date: Sat Jan 26 09:40:42 2008 +0100
atl: Check for NULL.
---
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 );
More information about the wine-cvs
mailing list