From d65c9145191f5d6360109a81169a8fa8136a4866 Mon Sep 17 00:00:00 2001 From: Woongsuk Cho Date: Fri, 10 Apr 2020 06:44:39 +0900 Subject: [PATCH] Bug-fix: fix wrong probe path for corerun mode. --- NativeLauncher/launcher/exec/corerun.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/NativeLauncher/launcher/exec/corerun.cc b/NativeLauncher/launcher/exec/corerun.cc index 2a78bae..df6cf1f 100644 --- a/NativeLauncher/launcher/exec/corerun.cc +++ b/NativeLauncher/launcher/exec/corerun.cc @@ -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; } -- 2.7.4