This commit is contained in:
gabime 2015-12-12 20:57:03 +02:00
commit 5ec7cfef63
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ inline bool file_exists(const std::string& filename)
return (attribs != INVALID_FILE_ATTRIBUTES && !(attribs & FILE_ATTRIBUTE_DIRECTORY));
#else
struct stat buffer;
return (stat (name.c_str(), &buffer) == 0);
return (stat (filename.c_str(), &buffer) == 0);
#endif
}