fs/NarrowPath: preserve nullptr in Path operator
Fixes Path::IsNull() checks on Windows.
This commit is contained in:
parent
7ded244a61
commit
fdb28eb0c4
@ -90,6 +90,11 @@ public:
|
||||
constexpr
|
||||
#endif
|
||||
operator Path() const noexcept {
|
||||
#ifdef _UNICODE
|
||||
if (value.IsNull())
|
||||
return nullptr;
|
||||
#endif
|
||||
|
||||
return value;
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user