diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2020-05-22 14:33:24 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2020-05-22 22:22:15 +0200 |
commit | b587de60d4e6aa96238766272d94f1499b22f696 (patch) | |
tree | 87c816f7d444f79aceb81aca6969adf8c0a14f98 /extensions/test/ole/OleClient | |
parent | 7f264f4beec931833b390ae1bbb93b2e22b4ad8a (diff) |
Prefer CoInitializeEx instead of CoInitialize
As https://docs.microsoft.com/fr-fr/windows/win32/api/objbase/nf-objbase-coinitialize?redirectedfrom=MSDN
advised.
Moreover, it'll make concurrency model explicit
Change-Id: I247a49248bf45beb64a7985a7c0d078ee48efe2d
Change-Id: I6e755fd516d9fb2dd2a9df0c66d9afd6070447ea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94669
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'extensions/test/ole/OleClient')
-rw-r--r-- | extensions/test/ole/OleClient/clientTest.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/test/ole/OleClient/clientTest.cxx b/extensions/test/ole/OleClient/clientTest.cxx index 675b2a66d09c..00a78034d1d9 100644 --- a/extensions/test/ole/OleClient/clientTest.cxx +++ b/extensions/test/ole/OleClient/clientTest.cxx @@ -72,9 +72,9 @@ void printSequence( Sequence<Any>& val); extern "C" int SAL_CALL main( int , char **) { HRESULT hr; - if( FAILED( hr=CoInitialize(NULL))) + if( FAILED( hr=CoInitializeEx(NULL, COINIT_APARTMENTTHREADED))) { - _tprintf(_T("CoInitialize failed \n")); + _tprintf(_T("CoInitializeEx failed \n")); return -1; } |