[ole32] Bugfix for implicit MTA apartment initialization

Rosen Diankov rosen.diankov at gmail.com
Sun Jun 30 18:51:26 CDT 2013


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 Co­InitializeEx 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

first reported in this bug:

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

rosen diankov,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mtafix.wine-1.6-rc4.patch
Type: application/octet-stream
Size: 781 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20130701/c376e782/attachment.obj>


More information about the wine-patches mailing list