https://bugs.winehq.org/show_bug.cgi?id=42072
--- Comment #22 from Erich E. Hoover erich.e.hoover@gmail.com --- (In reply to Zachary J from comment #21)
I've encountered this issue and I always use symlink to My\ Documents (I keep drive_c in a separate partition).
Yeah, when we first looking at this we were only thinking about symlinks within the prefix and forgetting that there are some symlinks that point to directories outside the prefix.
Debug log clearly shows Dead Space only gives 16 bytes for output, which is not enough for normal unix pathnames:
If you put your "My Documents" folder on another drive using an NT symlink then this problem would happen on Windows too, it's just an unusual situation.
... I patched wine-4.21/dlls/kernel32/volume.c GetVolumePathNameW() by changing 2 lines so that in case last_pos+1>buflen, just revert to default drive letter or something rather than failing: ...
Would you mind attaching your patch? Even though it's not ideal it might be possible to get it considered after the code freeze. In fact, I think that we can _technically_ report the drive letter of the destination volume based on the documentation on Junction Points at MSDN ( https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getvol... ).