Commit e64a051e authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

qt4: only use COM apartment thread for Shell Interfaces

(ref: MSDN KB 287087)
parent 33975668
...@@ -1255,9 +1255,7 @@ void SPrefsPanel::assoDialog() ...@@ -1255,9 +1255,7 @@ void SPrefsPanel::assoDialog()
{ {
HRESULT hr; HRESULT hr;
hr = CoInitializeEx( NULL, COINIT_MULTITHREADED ); hr = CoInitializeEx( NULL, COINIT_APARTMENTTHREADED );
if( hr == RPC_E_CHANGED_MODE )
hr = CoInitializeEx( NULL, COINIT_APARTMENTTHREADED );
if( SUCCEEDED(hr) ) if( SUCCEEDED(hr) )
{ {
void *p; void *p;
......
...@@ -119,9 +119,7 @@ void MainInterface::createTaskBarButtons() ...@@ -119,9 +119,7 @@ void MainInterface::createTaskBarButtons()
p_taskbl = NULL; p_taskbl = NULL;
himl = NULL; himl = NULL;
HRESULT hr = CoInitializeEx( NULL, COINIT_MULTITHREADED ); HRESULT hr = CoInitializeEx( NULL, COINIT_APARTMENTTHREADED );
if( hr == RPC_E_CHANGED_MODE )
hr = CoInitializeEx( NULL, COINIT_APARTMENTTHREADED );
if( FAILED(hr) ) if( FAILED(hr) )
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment