Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/misc/far2l/files/patch-far2l_src_mix_MountInfo.cpp
50018 views
1
--- far2l/src/mix/MountInfo.cpp.orig 2025-10-26 08:39:52 UTC
2
+++ far2l/src/mix/MountInfo.cpp
3
@@ -384,7 +384,7 @@ std::string MountInfo::GetFileSystem(const std::string
4
return out;
5
}
6
7
-std::string MountInfo::GetFileSystemMountPoint(const wchar_t *lpwsz_path) const
8
+std::string MountInfo::GetFileSystemMountPoint(const wchar_t *lpwsz_path, bool want_device) const
9
{
10
std::string out;
11
size_t longest_match = 0;
12
@@ -394,7 +394,7 @@ std::string MountInfo::GetFileSystemMountPoint(const w
13
for (const auto &it : *_mountpoints) {
14
if (it.path.size() > longest_match && StrStartsFrom(path, it.path.c_str())) {
15
longest_match = it.path.size();
16
- out = it.path;
17
+ out = want_device ? it.device : it.path;
18
}
19
}
20
return out;
21
22