Bug-fix: fix wrong probe path for corerun mode.
authorWoongsuk Cho <ws77.cho@samsung.com>
Thu, 9 Apr 2020 21:44:39 +0000 (06:44 +0900)
committer조웅석/Common Platform Lab(SR)/Principal Engineer/삼성전자 <ws77.cho@samsung.com>
Thu, 9 Apr 2020 23:28:46 +0000 (08:28 +0900)
NativeLauncher/launcher/exec/corerun.cc

index 2a78bae..df6cf1f 100644 (file)
@@ -49,14 +49,15 @@ int main(int argc, char *argv[])
 
        // get absolute path of input dll file
        std::string absoluteDllPath = absolutePath(argv[1]);
+       std::string absoluteRootPath = baseName(absoluteDllPath);
 
-       if (runtime->initialize(LaunchMode::corerun, false, absoluteDllPath.c_str()) != 0) {
+       if (runtime->initialize(LaunchMode::corerun, false, absoluteRootPath.c_str()) != 0) {
                _SOUT("Failed to initialize");
                return -1;
        }
 
        // launch application
-       if (runtime->launch(fileName, baseName(absoluteDllPath).c_str(), absoluteDllPath.c_str(), vargc, &vargs[0])) {
+       if (runtime->launch(fileName, absoluteRootPath.c_str(), absoluteDllPath.c_str(), vargc, &vargs[0])) {
                _SOUT("Failed to launch");
                return -1;
        }