Skip to content

Commit ce2e1e5

Browse files
committed
fix eh
1 parent 3b73b92 commit ce2e1e5

File tree

1 file changed

+2
-1
lines changed
  • include/fast_io_hosted/filesystem

1 file changed

+2
-1
lines changed

include/fast_io_hosted/filesystem/nt_at.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,11 +199,12 @@ inline void nt_symlinkat_impl(char16_t const *oldpath_c_str, ::std::size_t oldpa
199199
status = ::fast_io::win32::nt::nt_query_information_file<zw>(handle, __builtin_addressof(isb), __builtin_addressof(fbi),
200200
static_cast<::std::uint_least32_t>(sizeof(fbi)),
201201
::fast_io::win32::nt::file_information_class::FileBasicInformation);
202+
::fast_io::win32::nt::nt_close<zw>(handle);
203+
handle = nullptr;
202204
if (status) [[unlikely]]
203205
{
204206
throw_nt_error(status);
205207
}
206-
::fast_io::win32::nt::nt_close<zw>(handle);
207208
attribute = fbi.FileAttributes;
208209
}
209210

0 commit comments

Comments
 (0)