summaryrefslogtreecommitdiff
path: root/extensions/test/ole/cppToUno/testcppuno.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/test/ole/cppToUno/testcppuno.cxx')
-rw-r--r--extensions/test/ole/cppToUno/testcppuno.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/test/ole/cppToUno/testcppuno.cxx b/extensions/test/ole/cppToUno/testcppuno.cxx
index 563e2d0acc06..e64541ed2fc0 100644
--- a/extensions/test/ole/cppToUno/testcppuno.cxx
+++ b/extensions/test/ole/cppToUno/testcppuno.cxx
@@ -51,9 +51,9 @@ bool incrementMultidimensionalIndex(
int SAL_CALL main( int /*argc*/, char** /*argv*/ )
{
HRESULT hr;
- if( FAILED( hr=CoInitialize(NULL)))
+ if( FAILED( hr=CoInitializeEx(NULL, COINIT_APARTMENTTHREADED)))
{
- printf("CoInitialize failed \n");
+ printf("CoInitializeEx failed \n");
return -1;
}