http://bugs.winehq.org/show_bug.cgi?id=33749
Bug #: 33749 Summary: fix for "called from wrong apartment" bug in ClientRpcChannelBuffer_SendReceive Product: Wine Version: 1.6-rc1 Platform: x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: ole32 AssignedTo: wine-bugs@winehq.org ReportedBy: rosen.diankov@gmail.com Classification: Unclassified
There are cases where the "called from wrong apartment" gets called in ole32/rpc.c:ClientRpcChannelBuffer_SendReceive and there is no COM apartment set.
Actually the thread should be using the implicit multithreaded apartment created from a previous thread's CoInitializeEx call
http://blogs.msdn.com/b/oldnewthing/archive/2013/04/19/10412399.aspx
Therefore the fix is really simple, add this check right in the beginning of ClientRpcChannelBuffer_SendReceive
if( !COM_CurrentApt() ) { apartment_joinmta(); }
Note that in Windows 7 and beyond, there's a new flag that controls the implicit MTA behavior called APTTYPEQUALIFIER.
http://msdn.microsoft.com/library/dd542638
Wine should support this for Windows 7 and beyond.
http://bugs.winehq.org/show_bug.cgi?id=33749
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- Do you have a test case for this problem?
http://bugs.winehq.org/show_bug.cgi?id=33749
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |focht@gmx.net Ever confirmed|0 |1 Severity|major |normal
--- Comment #2 from Anastasius Focht focht@gmx.net --- Hello folks,
see bug 35367 which has actual app.
Regards
https://bugs.winehq.org/show_bug.cgi?id=33749
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download URL| |http://www.tracker-software | |.com/product/pdf-xchange-ed | |itor/download
--- Comment #3 from Austin English austinenglish@gmail.com --- Still present in 1.7.37.
https://bugs.winehq.org/show_bug.cgi?id=33749
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12@gmail.com Resolution|--- |DUPLICATE Status|NEW |RESOLVED
--- Comment #4 from Zebediah Figura z.figura12@gmail.com --- I think this is a duplicate of bug 35367.
*** This bug has been marked as a duplicate of bug 35367 ***
https://bugs.winehq.org/show_bug.cgi?id=33749
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Closing Duplicate.
https://bugs.winehq.org/show_bug.cgi?id=33749
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://www.tracker-software |https://web.archive.org/web |.com/product/pdf-xchange-ed |/20180727144403/http://down |itor/download |loads.pdf-xchange.com/PDFXV | |E5.zip