http://bugs.winehq.org/show_bug.cgi?id=27963
Summary: Anomaly: Warzone Earth crashes on start Product: Wine Version: 1.3.25 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: user32 AssignedTo: wine-bugs@winehq.org ReportedBy: benoit.pierre@gmail.com
Created an attachment (id=35789) --> (http://bugs.winehq.org/attachment.cgi?id=35789) Add RegisterTouchWindow stub to user32.dll
The game crashes on start due to a call to unimplemented RegisterTouchWindow in USER32.dll:
wine: Call from 0x7bc4b220 to unimplemented function USER32.dll.RegisterTouchWindow, aborting wine: Unimplemented function USER32.dll.RegisterTouchWindow called at address 0x7bc4b220 (thread 0055), starting debugger... Unhandled exception: unimplemented function USER32.dll.RegisterTouchWindow called in 32-bit code (0x7bc4b220).
The attached patch add a stub to user32.dll and fixes the problem for me: game starts fine.
http://bugs.winehq.org/show_bug.cgi?id=27963
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com 2011-08-02 15:39:57 CDT --- Are you running in Win7 mode?
http://bugs.winehq.org/show_bug.cgi?id=27963
--- Comment #2 from Benoit PIERRE benoit.pierre@gmail.com 2011-08-02 15:46:33 CDT --- (In reply to comment #1)
Are you running in Win7 mode?
No, should I? I'm running in Windows XP mode.
http://bugs.winehq.org/show_bug.cgi?id=27963
--- Comment #3 from Nikolay Sivov bunglehead@gmail.com 2011-08-02 15:53:08 CDT --- (In reply to comment #2)
(In reply to comment #1)
Are you running in Win7 mode?
No, should I? I'm running in Windows XP mode.
No, fine then. It's a newly added call that's supposed to be available starting Win7 as I understand. Application could guess version some other way, or it just doesn't work on native WinXP probably. Nevermind.
http://bugs.winehq.org/show_bug.cgi?id=27963
--- Comment #4 from Austin English austinenglish@gmail.com 2011-08-02 18:02:09 CDT --- Patches should be sent to wine-patches@winehq.org.
http://bugs.winehq.org/show_bug.cgi?id=27963
Mateusz Stachowski mateusz.stachowski@wp.pl changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mateusz.stachowski@wp.pl
--- Comment #5 from Mateusz Stachowski mateusz.stachowski@wp.pl 2011-11-20 14:40:08 CST --- (In reply to comment #4)
Patches should be sent to wine-patches@winehq.org.
I've compiled Wine 1.3.32 with this patch and then I was able to launch it from Steam. That was with the Windows XP mode.
That error can also be eliminated by removing PCTouchHelper.dll from the game directory. Then it will start on the vanilla Wine.
http://bugs.winehq.org/show_bug.cgi?id=27963
Jaime Rave jaimerave@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jaimerave@gmail.com
--- Comment #6 from Jaime Rave jaimerave@gmail.com 2012-11-26 21:28:44 CST --- Still a problem in Wine wine-1.5.18-25-g7895eae
http://bugs.winehq.org/show_bug.cgi?id=27963
Roland Haeder roland@mxchange.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |roland@mxchange.org
--- Comment #7 from Roland Haeder roland@mxchange.org 2013-07-15 15:46:03 CDT --- This bug also affects Anomaly2 (and still there with latest git/master.
http://bugs.winehq.org/show_bug.cgi?id=27963
--- Comment #8 from Roland Haeder roland@mxchange.org 2013-07-17 18:09:51 CDT --- As an alternative, the troubling DLL can be disabled with winecfg. Here you may want to try to disable "PCTouchHelper.dll":
1) Start winecfg (with the correct WINEPREFIX value) 2) Click on Libraries 3) Enter pctouchhelper -> click "Add" 4) Click "Edit" -> Select "Disabled" 5) Click "OK" button to apply and close winecfg 6) Launch Steam + game, the crash should be gone
Plus there is a native Linux version avaiable which is currently freeze on some non-Ubuntu systems (they only support Ubuntu) while loading missions.
http://bugs.winehq.org/show_bug.cgi?id=27963
--- Comment #9 from Roland Haeder roland@mxchange.org 2013-07-18 06:17:10 CDT --- Created attachment 45323 --> http://bugs.winehq.org/attachment.cgi?id=45323 updated stub, does now return correct error code "E_NOTIMPL"
This patch says "return 1;" in last line of the function. As I can remember all unimplemented functions should return E_NOTIMPL. If this breaks your game (e.g. let it crash) then I was asked by the developers to disable the DLL.
http://bugs.winehq.org/show_bug.cgi?id=27963
--- Comment #10 from Roland Haeder roland@mxchange.org 2013-07-18 06:19:53 CDT --- (In reply to comment #9)
[...]
I mean "original patch" with "this patch", not the one I attached. Sorry for bad wording. :(
http://bugs.winehq.org/show_bug.cgi?id=27963
--- Comment #11 from Nikolay Sivov bunglehead@gmail.com 2013-07-18 06:23:07 CDT --- (In reply to comment #9)
Created attachment 45323 [details] updated stub, does now return correct error code "E_NOTIMPL"
It doesn't make sense.
This patch says "return 1;" in last line of the function. As I can remember all unimplemented functions should return E_NOTIMPL. If this breaks your game (e.g. let it crash) then I was asked by the developers to disable the DLL.
You mean disable user32?
http://bugs.winehq.org/show_bug.cgi?id=27963
--- Comment #12 from Roland Haeder roland@mxchange.org 2013-07-18 06:40:17 CDT --- (In reply to comment #11)
(In reply to comment #9)
Created attachment 45323 [details] updated stub, does now return correct error code "E_NOTIMPL"
It doesn't make sense.
I saw in an other stub implementation so I just "copy&paste" it. :)
You mean disable user32?
I mean to disable PCTouchHelper as this (bundled) DLL calls RegisterTouchWindow in user32.dll.
http://bugs.winehq.org/show_bug.cgi?id=27963
Béla Gyebrószki gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |gyebro69@gmail.com Summary|Anomaly: Warzone Earth |Multiple games fail to |crashes on start |start due to unimplemented | |function | |USER32.dll.RegisterTouchWin | |dow (Anomaly: Warzone | |Earth, Shadowrun Returns) Ever confirmed|0 |1
--- Comment #13 from Béla Gyebrószki gyebro69@gmail.com --- This bug affects Shadowrun Returns on Steam, at least the current game version which is 1.2.16.The initial game version received Platinum rating on Appdb, I suppose one of the latest patches to the game introduced this bug when trying to start the game in Wine:
... wine: Unimplemented function USER32.dll.RegisterTouchWindow called at address 0x7bc51290 (thread 0054), starting debugger... ...
Tested with wine-1.7.18-92-gb01fc1a
http://bugs.winehq.org/show_bug.cgi?id=27963
--- Comment #14 from Roland Haeder roland@mxchange.org --- Can you start it with the described way? Disable gameoverlayrenderer.dll with winecfg and disable it in Steam options.
http://bugs.winehq.org/show_bug.cgi?id=27963
--- Comment #15 from Béla Gyebrószki gyebro69@gmail.com --- (In reply to Roland Haeder from comment #14)
Can you start it with the described way? Disable gameoverlayrenderer.dll with winecfg and disable it in Steam options.
I have gameoverlayrenderer.dll already disabled because of bug #35361. Your patch from comment #9 (even if it is not the correct way to handle the problem) lets Shadowrun start on Steam.
http://bugs.winehq.org/show_bug.cgi?id=27963
--- Comment #16 from Austin English austinenglish@gmail.com --- Created attachment 48504 --> http://bugs.winehq.org/attachment.cgi?id=48504 stub
Please test.
http://bugs.winehq.org/show_bug.cgi?id=27963
--- Comment #17 from Béla Gyebrószki gyebro69@gmail.com --- (In reply to Austin English from comment #16)
Created attachment 48504 [details] stub
Please test.
The patch helps with the problem when launching Shadowrun Returns on Steam.
http://bugs.winehq.org/show_bug.cgi?id=27963
--- Comment #18 from Austin English austinenglish@gmail.com --- (In reply to Béla Gyebrószki from comment #17)
(In reply to Austin English from comment #16)
Created attachment 48504 [details] stub
Please test.
The patch helps with the problem when launching Shadowrun Returns on Steam.
http://source.winehq.org/patches/data/104592
http://bugs.winehq.org/show_bug.cgi?id=27963
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |6458aca761f56dffcdf117e8145 | |0720c26a0c53f Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #19 from Austin English austinenglish@gmail.com --- Should be fixed by http://source.winehq.org/git/wine.git/commitdiff/6458aca761f56dffcdf117e8145...
https://bugs.winehq.org/show_bug.cgi?id=27963
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #20 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.19.