Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
MacroModel committed Nov 12, 2024
1 parent 0f0e45e commit 7164cf3
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion include/fast_io_hosted/filesystem/nt_at.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,16 @@ inline void nt_linkat_impl(void *olddirhd, char16_t const *oldpath_c_str, ::std:

if ((flags & nt_at_flags::empty_path) == nt_at_flags::empty_path)
{
file = ::fast_io::basic_nt_family_io_observer<zw ? nt_family::zw : nt_family::nt, char>{olddirhd};
if (oldpath_size != 0)
{
basic_file = ::fast_io::basic_nt_family_file<zw ? nt_family::zw : nt_family::nt, char>{
nt_call_callback(olddirhd, oldpath_c_str, oldpath_size, nt_create_callback<zw>{md})};
file = basic_file;
}
else
{
file = ::fast_io::basic_nt_family_io_observer<zw ? nt_family::zw : nt_family::nt, char>{olddirhd};
}
}
else
{
Expand Down

0 comments on commit 7164cf3

Please sign in to comment.