[Bug 20711] Flatout2 demo crashes on exit

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Mar 21 15:32:11 CDT 2010


http://bugs.winehq.org/show_bug.cgi?id=20711


Markus <mst at collogia.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mst at collogia.de




--- Comment #9 from Markus <mst at 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

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
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.



More information about the wine-bugs mailing list