Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'include/llfio/v2.0/detail/impl/windows/fs_handle.ipp')
-rw-r--r--include/llfio/v2.0/detail/impl/windows/fs_handle.ipp8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llfio/v2.0/detail/impl/windows/fs_handle.ipp b/include/llfio/v2.0/detail/impl/windows/fs_handle.ipp
index d15dddb1..d2952676 100644
--- a/include/llfio/v2.0/detail/impl/windows/fs_handle.ipp
+++ b/include/llfio/v2.0/detail/impl/windows/fs_handle.ipp
@@ -80,7 +80,7 @@ result<path_handle> fs_handle::parent_path_handle(deadline d) const noexcept
DWORD fileshare = FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE;
IO_STATUS_BLOCK isb = make_iostatus();
- path_view::c_str zpath(filename, true);
+ path_view::c_str<> zpath(filename, true);
UNICODE_STRING _path{};
_path.Buffer = const_cast<wchar_t *>(zpath.buffer);
_path.MaximumLength = (_path.Length = static_cast<USHORT>(zpath.length * sizeof(wchar_t))) + sizeof(wchar_t);
@@ -135,7 +135,7 @@ result<void> fs_handle::relink(const path_handle &base, path_view_type path, boo
// If the target is a win32 path, we need to convert to NT path and call ourselves
if(!base.is_valid() && !path.is_ntpath())
{
- path_view::c_str zpath(path, false);
+ path_view::c_str<> zpath(path, false);
UNICODE_STRING NtPath{};
if(RtlDosPathNameToNtPathName_U(zpath.buffer, &NtPath, nullptr, nullptr) == 0u)
{
@@ -148,10 +148,10 @@ result<void> fs_handle::relink(const path_handle &base, path_view_type path, boo
}
});
// RtlDosPathNameToNtPathName_U outputs \??\path, so path.is_ntpath() will be false.
- return relink(base, wstring_view(NtPath.Buffer, NtPath.Length / sizeof(wchar_t)));
+ return relink(base, path_view_type(NtPath.Buffer, NtPath.Length / sizeof(wchar_t), false));
}
- path_view::c_str zpath(path, true);
+ path_view::c_str<> zpath(path, true);
UNICODE_STRING _path{};
_path.Buffer = const_cast<wchar_t *>(zpath.buffer);
_path.MaximumLength = (_path.Length = static_cast<USHORT>(zpath.length * sizeof(wchar_t))) + sizeof(wchar_t);