From 3fe5eac56d8732014a0e5c69436b8974c36a05ea Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Thu, 14 Dec 2023 08:58:33 -0600 Subject: [PATCH] fix --- src/utils/native_file.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/native_file.cpp b/src/utils/native_file.cpp index 6221e7fd..0ccbd793 100644 --- a/src/utils/native_file.cpp +++ b/src/utils/native_file.cpp @@ -40,13 +40,13 @@ auto native_file::clone(const native_file_ptr &ptr) -> native_file_ptr { #ifdef _WIN32 source_path.resize(MAX_PATH + 1); - ::GetFinalPathNameByHandleA(nf->get_handle(), source_path.data(), + ::GetFinalPathNameByHandleA(ptr->get_handle(), source_path.data(), MAX_PATH + 1, FILE_NAME_NORMALIZED | VOLUME_NAME_DOS); #else source_path.resize(PATH_MAX + 1); #ifdef __APPLE__ - fcntl(nf->get_handle(), F_GETPATH, source_path.data()); + fcntl(ptr->get_handle(), F_GETPATH, source_path.data()); #else readlink(("/proc/self/fd/" + std::to_string(ptr->get_handle())).c_str(), source_path.data(), source_path.size());