summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--loader/loader-impl.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/loader/loader-impl.cpp b/loader/loader-impl.cpp
index 7ccbd6af..5d97d91c 100644
--- a/loader/loader-impl.cpp
+++ b/loader/loader-impl.cpp
@@ -171,9 +171,17 @@ void loader_impl::set_application_working_directory()
StringView path = *loc;
path = Path::split(path).first();
path = Path::split(path).first();
+#ifdef _WIN32
+ String p = "\\\\?\\" + path;
+ for (char& c : p)
+ if (c == '/')
+ c = '\\';
+ path = p;
+#endif
loader_detail::chdir(path);
}
- fm_warn("can't find install prefix!");
+ else
+ fm_warn("can't find install prefix!");
}
loader_impl::loader_impl()