+3
-3
lines changedFilter options
+3
-3
lines changed Original file line number Diff line number Diff line change
@@ -58,16 +58,16 @@ bool is_tree_granted(
58
58
std::string resolved_param = node::PathResolve(env, {param});
59
59
#ifdef _WIN32
60
60
// Remove leading "\\?\" from UNC path
61
-
if (resolved_param.substr(0, 4) == "\\\\?\\") {
61
+
if (resolved_param.starts_with("\\\\?\\")) {
62
62
resolved_param.erase(0, 4);
63
63
}
64
64
65
65
// Remove leading "UNC\" from UNC path
66
-
if (resolved_param.substr(0, 4) == "UNC\\") {
66
+
if (resolved_param.starts_with("UNC\\")) {
67
67
resolved_param.erase(0, 4);
68
68
}
69
69
// Remove leading "//" from UNC path
70
-
if (resolved_param.substr(0, 2) == "//") {
70
+
if (resolved_param.starts_with("//")) {
71
71
resolved_param.erase(0, 2);
72
72
}
73
73
#endif
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4