summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-10-18 11:03:42 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-10-18 11:03:42 +0200
commitc5c24f2035ef5941e83f7f0b15cb000f806983cd (patch)
tree01750cdb05c8ac44c63c7a5b85c37c9e828e648a /sfx2
parentc7ac773480bfbfcaac15c9bfdeeab400028a96d4 (diff)
Lock SolarMutex in SfxAppDispatchProvider::queryDispatch
...which can be called remotely via UNO, as happens during JunitTest_sfx2_unoapi Change-Id: I9dbf83f9985124ccb84f33cdd30ec1225a4f183d
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/appdispatchprovider.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sfx2/source/appl/appdispatchprovider.cxx b/sfx2/source/appl/appdispatchprovider.cxx
index cc947c5a3f87..c425d9d5150f 100644
--- a/sfx2/source/appl/appdispatchprovider.cxx
+++ b/sfx2/source/appl/appdispatchprovider.cxx
@@ -132,6 +132,8 @@ Reference < XDispatch > SAL_CALL SfxAppDispatchProvider::queryDispatch(
const OUString& /*sTargetFrameName*/,
FrameSearchFlags /*eSearchFlags*/ ) throw( RuntimeException, std::exception )
{
+ SolarMutexGuard guard;
+
sal_uInt16 nId( 0 );
bool bMasterCommand( false );
Reference < XDispatch > xDisp;