summaryrefslogtreecommitdiff
path: root/cppu/source/uno/loadmodule.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cppu/source/uno/loadmodule.cxx')
-rw-r--r--cppu/source/uno/loadmodule.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/cppu/source/uno/loadmodule.cxx b/cppu/source/uno/loadmodule.cxx
index f00936d328d2..1d8ab7576a67 100644
--- a/cppu/source/uno/loadmodule.cxx
+++ b/cppu/source/uno/loadmodule.cxx
@@ -31,16 +31,16 @@ namespace cppu { namespace detail {
#ifndef DISABLE_DYNLOADING
-::oslModule loadModule(rtl::OUString const & name) {
+bool loadModule(osl::Module& rModule, rtl::OUString const & name) {
rtl::OUStringBuffer b;
#if defined SAL_DLLPREFIX
b.append(SAL_DLLPREFIX);
#endif
b.append(name);
b.append(SAL_DLLEXTENSION);
- return ::osl_loadModuleRelative(
+ return rModule.loadRelative(
reinterpret_cast< oslGenericFunction >(&loadModule),
- b.makeStringAndClear().pData,
+ b.makeStringAndClear(),
SAL_LOADMODULE_GLOBAL | SAL_LOADMODULE_LAZY);
}