summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2020-05-22 14:33:24 +0200
committerJulien Nabet <serval2412@yahoo.fr>2020-05-22 22:22:15 +0200
commitb587de60d4e6aa96238766272d94f1499b22f696 (patch)
tree87c816f7d444f79aceb81aca6969adf8c0a14f98 /fpicker
parent7f264f4beec931833b390ae1bbb93b2e22b4ad8a (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 'fpicker')
-rw-r--r--fpicker/source/win32/VistaFilePickerImpl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpicker/source/win32/VistaFilePickerImpl.cxx b/fpicker/source/win32/VistaFilePickerImpl.cxx
index b4829126a0f6..c84fe5f3a72d 100644
--- a/fpicker/source/win32/VistaFilePickerImpl.cxx
+++ b/fpicker/source/win32/VistaFilePickerImpl.cxx
@@ -209,7 +209,7 @@ void VistaFilePickerImpl::before()
// by VCL and UNO so. There is no way to change that from outside...
// but we need a STA environment...
// So we make it by try-and-error...
- // If first CoInitialize will fail... we uninitialize COM initialize it new .-)
+ // If first CoInitializeEx will fail... we uninitialize COM initialize it new .-)
m_hLastResult = CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED);
if ( FAILED(m_hLastResult) )