fs/NarrowPath: preserve nullptr in Path operator

Fixes Path::IsNull() checks on Windows.
This commit is contained in:
Max Kellermann 2020-04-23 17:10:12 +02:00
parent 7ded244a61
commit fdb28eb0c4

View File

@ -90,6 +90,11 @@ public:
constexpr
#endif
operator Path() const noexcept {
#ifdef _UNICODE
if (value.IsNull())
return nullptr;
#endif
return value;
}
};