Skip to content

Commit

Permalink
Follow-up.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekazakov committed Dec 19, 2024
1 parent ea616ef commit 5a49953
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/VFS/source/VFSEasyOps.mm
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,8 @@ int VFSCompareNodes(const std::filesystem::path &_file1_full_path,
if( vfs_file->Open(VFSFlags::OF_Read, _cancel_checker) < 0 )
return std::nullopt;

char name[MAXPATHLEN];
if( !GetFilenameFromPath(_vfs_filepath.c_str(), name) )
const std::string_view name = utility::PathManip::Filename(_vfs_filepath);
if( name.empty() )
return std::nullopt;

auto native_file = _temp_storage.OpenFile(name);
Expand Down

0 comments on commit 5a49953

Please sign in to comment.