提交 a946feb1 编写于 作者: L liubb 提交者: Gitee

update js/builtin/filekit/src/nativeapi_fs_impl.c.

utils 去除冗余判断
上级 6c25c949
...@@ -48,7 +48,7 @@ static bool IsValidPath(const char* path) ...@@ -48,7 +48,7 @@ static bool IsValidPath(const char* path)
static int GetRealPath(const char* originPath, char* trustPath, size_t tPathLen) static int GetRealPath(const char* originPath, char* trustPath, size_t tPathLen)
{ {
#if (defined _WIN32 || defined _WIN64) #if (defined _WIN32 || defined _WIN64)
if (PathCanonicalize(originPath, trustPath) == true) { if (PathCanonicalize(trustPath, originPath)) {
return NATIVE_SUCCESS; return NATIVE_SUCCESS;
} }
#else #else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册