[Bug 42072] Dead Space (Steam) crashes on save with "divide by zero" error

WineHQ Bugzilla wine-bugs at winehq.org
Tue Dec 24 10:57:07 CST 2019


https://bugs.winehq.org/show_bug.cgi?id=42072

--- Comment #22 from Erich E. Hoover <erich.e.hoover at 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-getvolumepathnamew
).

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list