diff options
author | Oliver Bolte <obo@openoffice.org> | 2008-07-22 08:23:36 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2008-07-22 08:23:36 +0000 |
commit | f5c13ba5a712e0dffd0e9cbf1241edcf7770bdc7 (patch) | |
tree | 5c7b2c09c08631834a0ef9c68a006b3666d4dc62 /tools/source/testtoolloader/testtoolloader.cxx | |
parent | 3db65be66690bda4780a74ec097443b081874d48 (diff) |
#i91961# automation of extensionmanager broken
Diffstat (limited to 'tools/source/testtoolloader/testtoolloader.cxx')
-rw-r--r-- | tools/source/testtoolloader/testtoolloader.cxx | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/tools/source/testtoolloader/testtoolloader.cxx b/tools/source/testtoolloader/testtoolloader.cxx index 2880a4f0944d..a46b4d4c78c0 100644 --- a/tools/source/testtoolloader/testtoolloader.cxx +++ b/tools/source/testtoolloader/testtoolloader.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: testtoolloader.cxx,v $ - * $Revision: 1.11 $ + * $Revision: 1.12 $ * * This file is part of OpenOffice.org. * @@ -85,7 +85,7 @@ void LoadLib() aTestToolModule = osl_loadModuleRelative( &thisModule, rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(SVLIBRARY("sts"))).pData, - SAL_LOADMODULE_DEFAULT ); + SAL_LOADMODULE_GLOBAL ); } } @@ -131,19 +131,16 @@ void InitTestToolLib() { OUString aFuncName( RTL_CONSTASCII_USTRINGPARAM( "CreateEventLogger" )); - aTestToolModule = osl_loadModuleRelative( - &thisModule, - rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(SVLIBRARY("sts"))).pData, - SAL_LOADMODULE_GLOBAL ); + LoadLib(); if ( aTestToolModule ) { oslGenericFunction pInitFunc = osl_getFunctionSymbol( aTestToolModule, aFuncName.pData ); if ( pInitFunc ) - (reinterpret_cast< pfunc_CreateRemoteControl >(pInitFunc))(); + (reinterpret_cast< pfunc_CreateEventLogger >(pInitFunc))(); else { - DBG_ERROR1( "Unable to get Symbol 'CreateRemoteControl' from library %s while loading testtool support.", SVLIBRARY( "sts" ) ); + DBG_ERROR1( "Unable to get Symbol 'CreateEventLogger' from library %s while loading testtool support.", SVLIBRARY( "sts" ) ); } } else |