Skip to content

Commit 7d5bc28

Browse files
committed
LocaterAPI: ignore processing of Thumbs.db, which are hidden files created by Windows which can cause X-Ray to crash on startup.
1 parent 78cfe2a commit 7d5bc28

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/xrCore/LocatorAPI.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,9 @@ IC bool pred_str_ff(const _finddata_t& x, const _finddata_t& y)
537537

538538
bool ignore_name(const char* _name)
539539
{
540+
// ignore windows hidden Thumbs.db
541+
if (0 == strcmp(_name, "Thumbs.db"))
542+
return true;
540543
// ignore processing ".svn" folders
541544
return (_name[0] == '.' && _name[1] == 's' && _name[2] == 'v' && _name[3] == 'n' && _name[4] == 0);
542545
}

0 commit comments

Comments
 (0)