diff options
Diffstat (limited to 'src/fs')
-rw-r--r-- | src/fs/NarrowPath.hxx | 5 |
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; } }; |