diff --git a/src/eepp/system/filesystem.cpp b/src/eepp/system/filesystem.cpp index 9e70676dd..bbfbc831a 100644 --- a/src/eepp/system/filesystem.cpp +++ b/src/eepp/system/filesystem.cpp @@ -208,7 +208,7 @@ bool FileSystem::fileHide( const std::string& filepath ) { return SetFileAttributesW( (LPCWSTR)String( filepath ).toWideString().c_str(), FILE_ATTRIBUTE_HIDDEN ); #elif EE_PLATFORM == EE_PLATFORM_MACOS - return 0 == chflags( filename.c_str(), UF_HIDDEN ); + return 0 == chflags( filepath.c_str(), UF_HIDDEN ); #else return false; #endif