https://bugs.winehq.org/show_bug.cgi?id=53683
--- Comment #17 from Erich E. Hoover erich.e.hoover@gmail.com --- (In reply to Tuupertunut from comment #14)
Are you saying that just removing the lines that use chdir should be enough?
Sorry, somehow I missed this message. For most cases that would have been enough (it would only break for certain reparse points), but the updated patchset should fix this issue for you. The new version handles everything as full file paths (stitching together paths as necessary), so the chdir() is gone now.