http://bugs.winehq.org/show_bug.cgi?id=58162
--- Comment #6 from Patrick Hibbs hibbsncc1701@gmail.com --- Created attachment 78555 --> http://bugs.winehq.org/attachment.cgi?id=78555 Minimal test app
It seems that Windows' behavior changed sometime between Win7 and Win10.
Windows 7 has the same behavior as Wine with regards to this bug (i.e the detour fails), but Windows 10 works and the file is redirected by sone_patch.
I've attached a minimal test program if anyone wants to try this out to check for additional behavioral differences.
You'll still need sone_patch from: https://gitlab.com/redpolline/sone_patch/-/releases
But once you've gotten sone_patch extracted into the same folder as the test app, you can just run the included launch_test.bat.
If the detour is successful, the test app will place a W.ini file in the same folder as itself.
Otherwise, the test app will place a L.ini file.