Commit fdb28eb0 authored by Max Kellermann's avatar Max Kellermann

fs/NarrowPath: preserve nullptr in Path operator

Fixes Path::IsNull() checks on Windows.
parent 7ded244a
...@@ -90,6 +90,11 @@ public: ...@@ -90,6 +90,11 @@ public:
constexpr constexpr
#endif #endif
operator Path() const noexcept { operator Path() const noexcept {
#ifdef _UNICODE
if (value.IsNull())
return nullptr;
#endif
return value; return value;
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment