CoSetState Info Should Be Thread Local

Robert Shearman R.J.Shearman at warwick.ac.uk
Fri Feb 6 07:21:49 CST 2004


Hi,

The info stored by CoSetState should be thread local. If it is not it
causes native OleAut32 to crash under certain circumstances (at address
SysAllocStringLen+0xb0). This patch fixes this issue and also fixes
SetErrorInfo so that it allocates an uninitialized apartment when no
apartment is present.

Rob

License: X11/LGPL

Changelog:
- CoSetState info should be thread local
- SetErrorInfo should allocate an apartment when no apartment present
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cosetstate.diff
Type: text/x-patch
Size: 7332 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20040206/dc28f029/cosetstate.bin


More information about the wine-patches mailing list