summaryrefslogtreecommitdiff
path: root/src/fs
diff options
context:
space:
mode:
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;
}
};