http://bugs.winehq.org/show_bug.cgi?id=20711
Markus mst@collogia.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mst@collogia.de
--- Comment #9 from Markus mst@collogia.de 2010-03-21 15:32:10 --- Hi there.
Thanks Dan for your mail. The patch was applied because auf bug http://bugs.winehq.org/show_bug.cgi?id=10970
At the moment I have no Wine development environment to test this out. But to make it short. The patch was intended to fix the following buggy behaviour in Crazy Taxi Demo:
- Application called CoInitialize - Application called DirectInput8Create - DirectInput8Create called CoInitialize and got error code RPC_E_CHANGED_MODE - The subsequent call to CoUnitialize reverted CoInitialize of application
When thinking about it the best way should be to change the code in the following way. This would only call CoUninitialize if the previous CoInitiailize was successful.
... /* ensure balance of calls */ if(hrCo == S_OK) CoUninitialize(); ...
Hopefully someone can give it a try. The solution should be tested with both applications.
Best regards and thanks in advance.
Markus