[Bug 59860] New: When attempting to find symbol "ResolveAddress" from version.dll, code errors out.
http://bugs.winehq.org/show_bug.cgi?id=59860 Bug ID: 59860 Summary: When attempting to find symbol "ResolveAddress" from version.dll, code errors out. Product: Wine Version: 11.0 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: ntdll Assignee: wine-bugs@list.winehq.org Reporter: netradeepakc@gmail.com Distribution: --- Created attachment 81168 --> http://bugs.winehq.org/attachment.cgi?id=81168 A zip file containing both the dll in question and the inspection results of said dll I have attached the version.dll file in question. When code is attempting to read a function int this dll, it thows the following error: ``` Failed to get 'ResolveAddress' address. Process will now close. Last error: 127 ``` The code in question is this, https://github.com/maximegmd/CyberEngineTweaks/blob/master/src/reverse/Reloc... line 44 ``` resolveFunc = reinterpret_cast<functionType>(GetProcAddress(handle, functionName)); ``` I have inspected the version.dll file and it does have that function. And this code has been tested on a windows native setup. PFA the version.dll inspection results -- 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.
http://bugs.winehq.org/show_bug.cgi?id=59860 --- Comment #1 from Nikolay Sivov <bunglehead@gmail.com> --- It's most likely a conflict with version.dll that Wine provides. You can try setting native,builtin override for it, in winecfg. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=59860 --- Comment #2 from Nikolay Sivov <bunglehead@gmail.com> --- *** Bug 59861 has been marked as a duplicate of this bug. *** -- 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.
http://bugs.winehq.org/show_bug.cgi?id=59860 --- Comment #3 from Netradeepak Chinchwadkar <netradeepakc@gmail.com> --- I added the following environment variables and that caused the application to run into a different issue. ``` WINEDLLOVERRIDES="version=n,b" %COMMAND% ``` PFA Cyberpunk_err_screenshot_1 -- 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.
http://bugs.winehq.org/show_bug.cgi?id=59860 --- Comment #4 from Netradeepak Chinchwadkar <netradeepakc@gmail.com> --- Created attachment 81172 --> http://bugs.winehq.org/attachment.cgi?id=81172 Cyberpunk_err_screenshot_1 -- 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.
http://bugs.winehq.org/show_bug.cgi?id=59860 --- Comment #5 from Netradeepak Chinchwadkar <netradeepakc@gmail.com> --- Created attachment 81173 --> http://bugs.winehq.org/attachment.cgi?id=81173 Basic test script to load dll [working] I was able to trigger loading of "ResolveAddress" via this test script. It was successful through wine. ```
wine test.exe ResolveAddress found at 00006ffffab878d0
--
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.
http://bugs.winehq.org/show_bug.cgi?id=59860 Zeb Figura <z.figura12@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12@gmail.com --- Comment #6 from Zeb Figura <z.figura12@gmail.com> --- What application is this bug found in? -- 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.
http://bugs.winehq.org/show_bug.cgi?id=59860 --- Comment #7 from Netradeepak Chinchwadkar <netradeepakc@gmail.com> --- Steam game "Cyberpunk 2077" when running the "Cyber Engine Tweaks" mods -- 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.
http://bugs.winehq.org/show_bug.cgi?id=59860 Netradeepak Chinchwadkar <netradeepakc@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED --- Comment #8 from Netradeepak Chinchwadkar <netradeepakc@gmail.com> --- Please note ``` WINEDLLOVERRIDES="version=n,b" %COMMAND% ``` Fixes the issue, earlier fix attempts I had made cuased the error. I will be marking this bug Resolved. Thank you Nikolay Sivov and Zeb Figura for your timely response -- 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.
http://bugs.winehq.org/show_bug.cgi?id=59860 --- Comment #9 from Rafał Mużyło <galtgendo@o2.pl> --- (In reply to Netradeepak Chinchwadkar from comment #8)
Please note
``` WINEDLLOVERRIDES="version=n,b" %COMMAND% ```
Fixes the issue, earlier fix attempts I had made cuased the error. I will be marking this bug Resolved.
Sounds more like INVALID than FIXED. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=59860 Zeb Figura <z.figura12@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|FIXED |--- Status|RESOLVED |UNCONFIRMED --- Comment #10 from Zeb Figura <z.figura12@gmail.com> --- It's neither; we should ideally be able to tweak override heuristics to make this work out of the box. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=59860 --- Comment #11 from Rafał Mużyło <galtgendo@o2.pl> --- (In reply to Zeb Figura from comment #10)
It's neither; we should ideally be able to tweak override heuristics to make this work out of the box.
You pretty much can't come up with anything smarter than 'accept libs in the working directory as prioritized'. And even that needs to have carveouts for the libs that wine needs to be builtin (except for the cases where those very libs were the ones that the mod author used as the injection vector)... So, likely it will always need some manual tweaking... -- 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.
http://bugs.winehq.org/show_bug.cgi?id=59860 --- Comment #12 from Alexandre Julliard <julliard@winehq.org> --- (In reply to Zeb Figura from comment #10)
It's neither; we should ideally be able to tweak override heuristics to make this work out of the box.
The heuristics should work already: 0024:trace:module:version_heuristics got n,b vendor L"ThirteenAG" for L"\\??\\Z:\\home\\julliard\\wine\\wine\\version.dll" -- 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.
http://bugs.winehq.org/show_bug.cgi?id=59860 --- Comment #13 from Zeb Figura <z.figura12@gmail.com> --- (In reply to Rafał Mużyło from comment #11)
(In reply to Zeb Figura from comment #10)
It's neither; we should ideally be able to tweak override heuristics to make this work out of the box.
You pretty much can't come up with anything smarter than 'accept libs in the working directory as prioritized'. And even that needs to have carveouts for the libs that wine needs to be builtin (except for the cases where those very libs were the ones that the mod author used as the injection vector)...
That's not a very good heuristic; native libraries aren't always in the working directory, and sometimes libraries in the working directory are Microsoft libraries that can't work under Wine. The actual heuristic we use is checking the vendor name for "Microsoft", which works pretty well. (In reply to Alexandre Julliard from comment #12)
(In reply to Zeb Figura from comment #10)
It's neither; we should ideally be able to tweak override heuristics to make this work out of the box.
The heuristics should work already:
0024:trace:module:version_heuristics got n,b vendor L"ThirteenAG" for L"\\??\\Z:\\home\\julliard\\wine\\wine\\version.dll"
Hrm that's odd, I wonder why it wasn't working for the original reporter then. -- 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.
participants (1)
-
WineHQ Bugzilla