diff --git a/js/builtin/filekit/src/nativeapi_fs_impl.c b/js/builtin/filekit/src/nativeapi_fs_impl.c index 51f4461..03f142e 100755 --- a/js/builtin/filekit/src/nativeapi_fs_impl.c +++ b/js/builtin/filekit/src/nativeapi_fs_impl.c @@ -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