https://bugs.winehq.org/show_bug.cgi?id=53715
--- Comment #10 from Erich E. Hoover erich.e.hoover@gmail.com --- (In reply to Béla Gyebrószki from comment #8)
Unfortunately that doesn't fix the problem when 'Show dot files' is unchecked.
If you don't mind testing, this should do the trick: === while (p > name && p[-1] == '/') p--; while (p > name && p[-1] != '/') p--; return (p < end && p[0] == '.' && p[1] && (p[1] != '.' || p[2])); ===