char appId[APPID_MAX_LENGTH] = {0,};
std::string appRoot;
snprintf(appId, 16, "%s", "dotnet-launcher");
- appRoot = baseName(argv[1]);
+ std::string absoluteDllPath = absolutePath(argv[1]);
+ appRoot = baseName(absoluteDllPath);
if (runtime->initialize(true, false, appRoot.c_str()) != 0) {
_ERR("Failed to initialize");
int argsLen = vargs.size() - 1;
char** args = &vargs[1];
- if (runtime->launch(appId, appRoot.c_str(), argv[1], argsLen, args)) {
+ if (runtime->launch(appId, appRoot.c_str(), absoluteDllPath.c_str(), argsLen, args)) {
_ERR("Failed to launch");
return 1;
}