We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3004bbf + 7631b38 commit 8190fe7Copy full SHA for 8190fe7
platform/windows/os_windows.cpp
@@ -97,7 +97,7 @@ static String fix_path(const String &p_path) {
97
}
98
path = path.simplify_path();
99
path = path.replace("/", "\\");
100
- if (!path.is_network_share_path() && !path.begins_with(R"(\\?\)")) {
+ if (path.size() >= MAX_PATH && !path.is_network_share_path() && !path.begins_with(R"(\\?\)")) {
101
path = R"(\\?\)" + path;
102
103
return path;
0 commit comments