Skip to content

Commit

Permalink
LocaterAPI: ignore processing of Thumbs.db, which are hidden files cr…
Browse files Browse the repository at this point in the history
…eated by Windows which can cause X-Ray to crash on startup.
  • Loading branch information
revolucas committed Sep 10, 2016
1 parent 78cfe2a commit 7d5bc28
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/xrCore/LocatorAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,9 @@ IC bool pred_str_ff(const _finddata_t& x, const _finddata_t& y)

bool ignore_name(const char* _name)
{
// ignore windows hidden Thumbs.db
if (0 == strcmp(_name, "Thumbs.db"))
return true;
// ignore processing ".svn" folders
return (_name[0] == '.' && _name[1] == 's' && _name[2] == 'v' && _name[3] == 'n' && _name[4] == 0);
}
Expand Down

0 comments on commit 7d5bc28

Please sign in to comment.