summaryrefslogtreecommitdiff
path: root/src/fs
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2020-04-23 17:54:22 +0200
committerMax Kellermann <max@musicpd.org>2020-04-23 18:01:23 +0200
commit0b3acc3eec1688d58120921b2dc58ae64851354c (patch)
treeefa25cb96e9e8bd10b5a04d2e087e9a993929b5f /src/fs
parent6979be008cb334ca08fc031ecb86a723bf656381 (diff)
parent6c240f667c391f678dd916d0a1d7e9b149557240 (diff)
Merge tag 'v0.21.23'
release v0.21.23
Diffstat (limited to 'src/fs')
-rw-r--r--src/fs/NarrowPath.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fs/NarrowPath.hxx b/src/fs/NarrowPath.hxx
index c0e15ea23..eab404111 100644
--- a/src/fs/NarrowPath.hxx
+++ b/src/fs/NarrowPath.hxx
@@ -90,6 +90,11 @@ public:
constexpr
#endif
operator Path() const noexcept {
+#ifdef _UNICODE
+ if (value.IsNull())
+ return nullptr;
+#endif
+
return value;
}
};