From 0050f0673c80ba40c2523e9a9eb2d44f746f8e0a Mon Sep 17 00:00:00 2001 From: cuiruibin Date: Fri, 10 Jan 2025 14:48:47 +0800 Subject: [PATCH] =?UTF-8?q?Path=E8=BD=ACuri=EF=BC=8C=E5=A6=82=E6=9E=9C?= =?UTF-8?q?=E4=BC=A0=E5=85=A5path=E4=B8=BAuri=E5=88=99=E4=B8=8D=E5=A4=84?= =?UTF-8?q?=E7=90=86=E5=8E=9F=E4=B8=B2=E8=BF=94=E5=9B=9E=20Signed-off-by:?= =?UTF-8?q?=20cuiruibin=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- interfaces/common/src/common_func.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/interfaces/common/src/common_func.cpp b/interfaces/common/src/common_func.cpp index 177b7f332..cdbe7bfdb 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 == "") { -- Gitee