summaryrefslogtreecommitdiff
path: root/embedserv
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-03-09 09:06:10 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-03-09 09:06:10 +0000
commit678f29d47d50f1098ced631eb6365e0002b7642e (patch)
tree0589aae98ab22a535f9a124b60667f40922ec7cb /embedserv
parent5f340c64f6f58215935ab04278a830382de893c4 (diff)
INTEGRATION: CWS fwkmerge1 (1.3.42); FILE MERGED
2004/02/19 15:52:16 mav 1.3.42.1: #115237# integrate fix for 111921
Diffstat (limited to 'embedserv')
-rwxr-xr-xembedserv/source/embed/servprov.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/embedserv/source/embed/servprov.cxx b/embedserv/source/embed/servprov.cxx
index 5c50d5ef7..271080e88 100755
--- a/embedserv/source/embed/servprov.cxx
+++ b/embedserv/source/embed/servprov.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: servprov.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: kz $ $Date: 2004-02-25 17:09:48 $
+ * last change: $Author: hr $ $Date: 2004-03-09 10:06:10 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -310,13 +310,13 @@ STDMETHODIMP_(ULONG) EmbedProviderFactory_Impl::AddRef()
STDMETHODIMP_(ULONG) EmbedProviderFactory_Impl::Release()
{
::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex());
- m_refCount--;
- if (m_refCount == 0)
+ sal_Int32 nCount = --m_refCount;
+ if ( nCount == 0 )
{
delete this;
}
- return m_refCount;
+ return nCount;
}
STDMETHODIMP EmbedProviderFactory_Impl::CreateInstance(IUnknown FAR* punkOuter,