summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWoongsuk Cho <ws77.cho@samsung.com>2018-07-11 10:35:15 +0900
committerWoongsuk Cho <ws77.cho@samsung.com>2018-07-11 10:35:15 +0900
commit97d13822a6b55b5b1418df892811b5795f6ee5c3 (patch)
treef53463476772d606f6aa1039e0b000218d05b7c4
parentd30d10e3a78ba764d298939859415001d697aa38 (diff)
downloadlauncher-97d13822a6b55b5b1418df892811b5795f6ee5c3.tar.gz
launcher-97d13822a6b55b5b1418df892811b5795f6ee5c3.tar.bz2
launcher-97d13822a6b55b5b1418df892811b5795f6ee5c3.zip
Change-Id: I98c0f768dcc6d135cdbc6bc2b3e9682d78cbd933
-rw-r--r--NativeLauncher/util/path_manager.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/NativeLauncher/util/path_manager.cc b/NativeLauncher/util/path_manager.cc
index cc42e88..99446ed 100644
--- a/NativeLauncher/util/path_manager.cc
+++ b/NativeLauncher/util/path_manager.cc
@@ -75,11 +75,9 @@ int initializePathManager(const std::string& runtimeDir, const std::string& tize
if (!extraDir.empty()) {
splitPath(extraDir, __dllPath->extra_dirs);
} else {
- if (pluginGetDllPath()) {
- std::string pluginPath(pluginGetDllPath());
- if (!pluginPath.empty()) {
- splitPath(pluginPath, __dllPath->extra_dirs);
- }
+ char* extraPath = pluginGetDllPath();
+ if (extraPath) {
+ splitPath(extraPath, __dllPath->extra_dirs);
}
}
@@ -129,7 +127,7 @@ std::string getTPA()
tpaDir.push_back(getRuntimeDir());
tpaDir.push_back(getTizenFXDir());
tpaDir.push_back(getTizenFXRefDir());
- tpaDir.insert(tpaDir.end(), getExtraDirs().begin(), getExtraDirs().end());
+ tpaDir.insert(tpaDir.end(), __dllPath->extra_dirs.begin(), __dllPath->extra_dirs.end());
assembliesInDirectory(tpaDir, __tpa);
return __tpa;