Fix wstring join_paths (#22271) (#22305)

* Fix wstring join_paths

* Fix codestyle
This commit is contained in:
Vishniakov Nikolai 2024-01-23 00:10:12 +01:00 committed by GitHub
parent ecbb1387ab
commit d5c91c758c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -146,7 +146,11 @@ std::wstring join_paths(const std::wstring& s1, const std::wstring& s2) {
} else if (s1.size() > 0) {
rc = s1;
if (rc[rc.size() - 1] != '/') {
# ifndef _WIN32
rc += '/';
# else
rc += '\\';
# endif
}
rc += s2;
} else {