summaryrefslogtreecommitdiff
path: root/extensions/test/ole/cpptest/cpptest.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/test/ole/cpptest/cpptest.cxx')
-rw-r--r--extensions/test/ole/cpptest/cpptest.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/test/ole/cpptest/cpptest.cxx b/extensions/test/ole/cpptest/cpptest.cxx
index d97489847399..ec1592587ee2 100644
--- a/extensions/test/ole/cpptest/cpptest.cxx
+++ b/extensions/test/ole/cpptest/cpptest.cxx
@@ -33,7 +33,7 @@ HRESULT doTest();
int main(int /*argc*/, char** /*argv*/)
{
HRESULT hr;
- if( FAILED( hr=CoInitialize(NULL)))
+ if( FAILED( hr=CoInitializeEx(NULL, COINIT_APARTMENTTHREADED)))
{
printf("CoInitialize failed \n");
return -1;