diff --git a/interfaces/common/src/common_func.cpp b/interfaces/common/src/common_func.cpp index 177b7f332b23c1a4cb1565794ede2dbb2192f024..cdbe7bfdbb244ee31c36700ffdc853ecf4d5ced1 100644 --- a/interfaces/common/src/common_func.cpp +++ b/interfaces/common/src/common_func.cpp @@ -108,9 +108,11 @@ static void NormalizePath(string &path) string CommonFunc::GetUriFromPath(const string &path) { + if (path.find(FILE_SCHEME_PREFIX) == 0) { + return path; + } string realPath = path; NormalizePath(realPath); - { std::lock_guard lock(g_globalMutex); if (g_bundleName == "") {