mirror of
https://github.com/openharmony/utils_native_lite.git
synced 2026-07-19 22:43:34 -04:00
update js/builtin/filekit/src/nativeapi_fs_impl.c.
utils 去除冗余判断
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user