diff options
author | Max Kellermann <max@musicpd.org> | 2020-04-03 15:57:53 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2020-04-03 16:13:15 +0200 |
commit | 56b4b010d6d1e725ad033a7f3f3e0bb23e76cdcc (patch) | |
tree | 9c2ea48946157f49ee75b033661b03b26751ec6e /src/fs/NarrowPath.cxx | |
parent | 91c75a133f25d2b447391351c59b0e07e69c9ed1 (diff) |
fs/FileSystem, ...: use AllocatedPath::FromFS(string_view)
Diffstat (limited to 'src/fs/NarrowPath.cxx')
-rw-r--r-- | src/fs/NarrowPath.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fs/NarrowPath.cxx b/src/fs/NarrowPath.cxx index e2597f83f..596e46de6 100644 --- a/src/fs/NarrowPath.cxx +++ b/src/fs/NarrowPath.cxx @@ -43,7 +43,7 @@ AcpToAllocatedPath(const char *s) if (result <= 0) throw MakeLastError("MultiByteToWideChar() failed"); - return AllocatedPath::FromFS(buffer); + return AllocatedPath::FromFS(std::wstring_view(buffer, result)); } FromNarrowPath::FromNarrowPath(const char *s) |