diff options
Diffstat (limited to 'sal/osl/w32/socket.cxx')
-rw-r--r-- | sal/osl/w32/socket.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sal/osl/w32/socket.cxx b/sal/osl/w32/socket.cxx index 4f150d0e6486..42a0e37a8212 100644 --- a/sal/osl/w32/socket.cxx +++ b/sal/osl/w32/socket.cxx @@ -1144,12 +1144,12 @@ oslSocket SAL_CALL osl_createSocket ( void SAL_CALL osl_acquireSocket( oslSocket pSocket ) { - osl_incrementInterlockedCount( &(pSocket->m_nRefCount) ); + osl_atomic_increment( &(pSocket->m_nRefCount) ); } void SAL_CALL osl_releaseSocket( oslSocket pSocket ) { - if( pSocket && 0 == osl_decrementInterlockedCount( &(pSocket->m_nRefCount) ) ) + if( pSocket && 0 == osl_atomic_decrement( &(pSocket->m_nRefCount) ) ) { osl_closeSocket( pSocket ); __osl_destroySocketImpl( pSocket ); |