summaryrefslogtreecommitdiff
path: root/winaccessibility/source/service/AccTopWindowListener.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-11-19 20:12:23 +0100
committerMichael Stahl <mstahl@redhat.com>2013-11-20 01:33:42 +0100
commit3e1c7d12eeefdfc50b842fe34f3db657292359b9 (patch)
treeede628029df8a2a9aba9eece4f6876a6ffc2b371 /winaccessibility/source/service/AccTopWindowListener.cxx
parented750424f7c02b0ae868f33731f90885a4946f47 (diff)
winaccessibility: replace mysterious and inexplicable locking strategy
Do the conservative thing and lock the SolarMutex at every UNO API entry point. Change-Id: I51afffada975df7ee3435784aa050a2c19cd0ac8
Diffstat (limited to 'winaccessibility/source/service/AccTopWindowListener.cxx')
-rw-r--r--winaccessibility/source/service/AccTopWindowListener.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/winaccessibility/source/service/AccTopWindowListener.cxx b/winaccessibility/source/service/AccTopWindowListener.cxx
index c812ea965ce9..87b4b9f7e1db 100644
--- a/winaccessibility/source/service/AccTopWindowListener.cxx
+++ b/winaccessibility/source/service/AccTopWindowListener.cxx
@@ -24,6 +24,7 @@
#include <toolkit/awt/Vclxwindow.hxx>
#include <vcl/sysdata.hxx>
+#include <vcl/svapp.hxx>
#include "AccTopWindowListener.hxx"
#include "unomsaaevent.hxx"
@@ -141,6 +142,8 @@ void AccTopWindowListener::windowOpened( const ::com::sun::star::lang::EventObje
if ( !pAccessible )
return;
+ SolarMutexGuard g;
+
HandleWindowOpened( pAccessible );
}