https://bugs.winehq.org/show_bug.cgi?id=53715
--- Comment #11 from Béla Gyebrószki gyebro69@gmail.com --- (In reply to Erich E. Hoover from comment #10)
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]));
===
This fixes the problem, thank you.
Also fixes bug #52270.