summaryrefslogtreecommitdiff
path: root/cppu/source/helper/purpenv/helper_purpenv_Proxy.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cppu/source/helper/purpenv/helper_purpenv_Proxy.cxx')
-rw-r--r--cppu/source/helper/purpenv/helper_purpenv_Proxy.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/cppu/source/helper/purpenv/helper_purpenv_Proxy.cxx b/cppu/source/helper/purpenv/helper_purpenv_Proxy.cxx
index 989dadac33d4..f0706e190dbb 100644
--- a/cppu/source/helper/purpenv/helper_purpenv_Proxy.cxx
+++ b/cppu/source/helper/purpenv/helper_purpenv_Proxy.cxx
@@ -307,7 +307,7 @@ void Proxy::acquire(void)
NULL,
NULL);
- if (osl_incrementInterlockedCount(&m_nRef) == 1)
+ if (osl_atomic_increment(&m_nRef) == 1)
{
// rebirth of proxy zombie
void * pThis = this;
@@ -350,7 +350,7 @@ void Proxy::release(void)
NULL,
NULL);
- if (osl_decrementInterlockedCount(&m_nRef) == 0)
+ if (osl_atomic_decrement(&m_nRef) == 0)
m_from.get()->pExtEnv->revokeInterface(m_from.get()->pExtEnv, this);
if (probeFun)