https://bugs.winehq.org/show_bug.cgi?id=53715
--- Comment #7 from Erich E. Hoover erich.e.hoover@gmail.com --- No, but I see a mistake - try replacing: === + while (p > name && p[-1] == '\') p--; + while (p > name && p[-1] != '\') p--; === with: === + while (p > name && p[-1] == '/') p--; + while (p > name && p[-1] != '/') p--; ===