mirror of
https://github.com/openharmony/developtools_global_resource_tool.git
synced 2026-07-20 22:47:00 -04:00
+2
-2
@@ -360,15 +360,15 @@ void FileEntry::FilePath::Init()
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
string FileEntry::AdapateLongPath(const string &path)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
if (path.size() >= MAX_PATH -12) { //the max file path can not exceed 260 - 12
|
||||
return LONG_PATH_HEAD + path;
|
||||
}
|
||||
#endif
|
||||
return path;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user