http://bugs.winehq.org/show_bug.cgi?id=58837
Bug ID: 58837 Summary: getCurrentThreadID error when enabling speedhack in Cheat Engine Product: Wine Version: 10.17 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: kernel32 Assignee: wine-bugs@winehq.org Reporter: alexhenrie24@gmail.com Distribution: ---
Steps to reproduce:
1. Run `wine CheatEngine76.exe` and when prompted to install additional software, click "Skip All"
2. Run `wine 'C:\Program Files\Cheat Engine\Cheat Engine.exe'`
3. Click File, then Open Process, then double-click Cheat Engine
4. On the right side of the window, click the "Enable Speedhack" checkbox
An error dialog appears that says:
error in injectCEHelperLib(): ccode section compilation failed:<string-0>:22: warning: assignment discards qualifiers from pointer type tcc: error: undefined symbol 'getCurrentThreadID'
$ sha256sum CheatEngine76.exe 7f57ab6697f2d27604be2d63d03768612e6022a1c3b708507af8fb23d461428a
http://bugs.winehq.org/show_bug.cgi?id=58837
Alex Henrie alexhenrie24@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.winehq.org/show | |_bug.cgi?id=40283
http://bugs.winehq.org/show_bug.cgi?id=58837
Alex Henrie alexhenrie24@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |https://www.cheatengine.org | |/downloads.php Keywords| |download, source See Also| |https://bugs.winehq.org/sho | |w_bug.cgi?id=58839
--- Comment #1 from Alex Henrie alexhenrie24@gmail.com --- Patch sent: https://gitlab.winehq.org/wine/wine/-/merge_requests/9256
The next problem is Bug 58839.
http://bugs.winehq.org/show_bug.cgi?id=58837
--- Comment #2 from Alex Henrie alexhenrie24@gmail.com --- The problem is a discrepancy between the exported function name GetCurrentThreadId and the function name KERNEL32_GetCurrentThreadId in the debug symbols. You can work around the problem by removing debug symbols from Wine's kernel32.dll, for example with `sudo strip /usr/lib/wine/*-windows/kernel32.dll`. But only run `strip` if you know what you are doing: Your modified Wine is likely to break the next time your Linux distribution tries to update its Wine package.
http://bugs.winehq.org/show_bug.cgi?id=58837
Eric Pouech eric.pouech@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |eric.pouech@gmail.com Status|NEW |ASSIGNED Component|kernel32 |dbghelp
--- Comment #3 from Eric Pouech eric.pouech@gmail.com --- raised MR!9284
in a nutshell, some debug formats didn't follow the SLMFLAG_NO_SYMBOLS flag in dbghelp.SymLoadModuleEx
and where hence exposing internal function names (decorated names on 32bit and/or internal function name when it differs from exported name)
the referrenced MR (upon other things) ensures that for all formats support the flag
(changing ticket module to dbghelp)
http://bugs.winehq.org/show_bug.cgi?id=58837
Alex Henrie alexhenrie24@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED Fixed by SHA1| |2509fc6ef0e7510eb5bb5ff4074 | |83a46255f6b2c
--- Comment #4 from Alex Henrie alexhenrie24@gmail.com --- Fixed by https://gitlab.winehq.org/wine/wine/-/commit/2509fc6ef0e7510eb5bb5ff407483a4...
Thanks again Eric!
http://bugs.winehq.org/show_bug.cgi?id=58837
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 10.18.