summaryrefslogtreecommitdiffstats
path: root/platform/windows/os_windows.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-09-10 09:51:34 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-09-10 09:51:34 +0200
commit444683bd09d5e548a6e6057c1ef53a46e89e5efa (patch)
tree7cdb7456ebd44af3ba3f99a1da161f3be13be605 /platform/windows/os_windows.cpp
parent1a51637732059d6cbc7f62a4057ad3bdaec472eb (diff)
parent2c991a727b1ff94fa5adca3a5a196ffa1162f98d (diff)
downloadredot-engine-444683bd09d5e548a6e6057c1ef53a46e89e5efa.tar.gz
Merge pull request #96777 from bruvzg/and_exp_win
[Windows] Only use long executable path when necessary, fix broken apksigner detection.
Diffstat (limited to 'platform/windows/os_windows.cpp')
-rw-r--r--platform/windows/os_windows.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp
index f9c636a4a6..e6e8c6aaef 100644
--- a/platform/windows/os_windows.cpp
+++ b/platform/windows/os_windows.cpp
@@ -101,7 +101,7 @@ static String fix_path(const String &p_path) {
}
path = path.simplify_path();
path = path.replace("/", "\\");
- if (!path.is_network_share_path() && !path.begins_with(R"(\\?\)")) {
+ if (path.size() >= MAX_PATH && !path.is_network_share_path() && !path.begins_with(R"(\\?\)")) {
path = R"(\\?\)" + path;
}
return path;