Apache OpenOffice (AOO) Bugzilla – Issue 79326
Remove CoInitializeEx from oslWorkerWrapperFunction
Last modified: 2013-02-07 21:58:36 UTC
The shell execute service must be used in a STA context, but in OSL all threads are already initialized with a MTA. So either the code needs to rely on CoUninitialize to work correctly or we remove the CoInitializeEx from the oslWorkerWrapperFunction.
.
In CWS register30 I marked the SystemShellExecute service implementation for Windows as thread affine and added a CoUnitialize/CoInitialize sequence in its c'tor. The same sequence already exists in the online update check module, which probably is obsolete with the latest change. Both should be cleaned up when we drop the CoInitialize in sal.