diff options
author | Daniel Boelzle <dbo@openoffice.org> | 2001-07-03 15:09:01 +0000 |
---|---|---|
committer | Daniel Boelzle <dbo@openoffice.org> | 2001-07-03 15:09:01 +0000 |
commit | 5938789e551532278e6ddf362a1a62137ac4fc26 (patch) | |
tree | cefa120c8382844241293d43a71c799b7c92a812 /cppu/inc | |
parent | 182095ea2227af124344ed73841db2e9571754c5 (diff) |
#88981# fixed quering for unknown type
Diffstat (limited to 'cppu/inc')
-rw-r--r-- | cppu/inc/typelib/typedescription.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/cppu/inc/typelib/typedescription.h b/cppu/inc/typelib/typedescription.h index 206f3973b18a..5c35070a60b2 100644 --- a/cppu/inc/typelib/typedescription.h +++ b/cppu/inc/typelib/typedescription.h @@ -2,9 +2,9 @@ * * $RCSfile: typedescription.h,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: dbo $ $Date: 2001-04-17 13:29:24 $ + * last change: $Author: dbo $ $Date: 2001-07-03 16:09:01 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -741,18 +741,20 @@ void SAL_CALL typelib_typedescription_revokeCallback( #define TYPELIB_DANGER_GET( ppDescription, pTypeRef ) \ { \ typelib_TypeDescriptionReference * __pMacroTypeRef = (pTypeRef); \ + typelib_TypeDescription ** __ppMacroTypeDescr = (ppDescription); \ if (TYPELIB_TYPEDESCRIPTIONREFERENCE_ISREALLYWEAK( __pMacroTypeRef->eTypeClass )) \ { \ - typelib_typedescriptionreference_getDescription( ppDescription, __pMacroTypeRef ); \ + typelib_typedescriptionreference_getDescription( __ppMacroTypeDescr, __pMacroTypeRef ); \ } \ else if (! __pMacroTypeRef->pType->pWeakRef) \ { \ - typelib_typedescriptionreference_getDescription( ppDescription, __pMacroTypeRef ); \ - typelib_typedescription_release( *(ppDescription) ); \ + typelib_typedescriptionreference_getDescription( __ppMacroTypeDescr, __pMacroTypeRef ); \ + if (*__ppMacroTypeDescr) \ + typelib_typedescription_release( *__ppMacroTypeDescr ); \ } \ else \ { \ - *(ppDescription) = __pMacroTypeRef->pType; \ + *__ppMacroTypeDescr = __pMacroTypeRef->pType; \ } \ } |