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

utils 去除冗余判断
This commit is contained in:
liubb
2020-09-28 12:27:59 +08:00
committed by Gitee
parent 6c25c9498f
commit a946feb1a8
+1 -1
View File
@@ -48,7 +48,7 @@ static bool IsValidPath(const char* path)
static int GetRealPath(const char* originPath, char* trustPath, size_t tPathLen)
{
#if (defined _WIN32 || defined _WIN64)
if (PathCanonicalize(originPath, trustPath) == true) {
if (PathCanonicalize(trustPath, originPath)) {
return NATIVE_SUCCESS;
}
#else