[Bug 46956] ReplaceFile cannot replace the current executable

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Apr 4 11:52:17 CDT 2019


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

--- Comment #6 from Glen Miner <shaggie76 at hotmail.com> ---
I went looking to see if I could hack around this problem by emulating what the
patched ReplaceFile does; I can get close but in the end I'm blocked because
the call to rename() is subverted: when WINE calls it libc answers; when I call
it dlls/msvcrt/file.c answers (and fails: Permission denied).

If there was a way for me to call the 'real' rename() I'd be willing to try but
as it stands I've spent far, far more time trying to work around this problem
as it is.

I'm going to just hack our launcher to detect this failure and direct people
here. I'm not willing to modify how the launcher works at a fundamental level
because screwing that up could break millions of installs and it isn't worth
the risk.

-- 
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