Skip to content

Commit 8190fe7

Browse files
authored
Merge pull request #378 from sshiiden/android-fix
[Windows] Only use long executable path when necessary
2 parents 3004bbf + 7631b38 commit 8190fe7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform/windows/os_windows.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ static String fix_path(const String &p_path) {
9797
}
9898
path = path.simplify_path();
9999
path = path.replace("/", "\\");
100-
if (!path.is_network_share_path() && !path.begins_with(R"(\\?\)")) {
100+
if (path.size() >= MAX_PATH && !path.is_network_share_path() && !path.begins_with(R"(\\?\)")) {
101101
path = R"(\\?\)" + path;
102102
}
103103
return path;

0 commit comments

Comments
 (0)