From 9e11837b6bdbb5b04e8d7dc09706b2d5b4590e6c Mon Sep 17 00:00:00 2001 From: Dave Korn Date: Wed, 4 Nov 2009 15:39:43 +0000 Subject: [PATCH] * main.cc (main_display): Use apartment-, not multi- threading model when initialiseing COM. --- ChangeLog | 5 +++++ main.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f42a1c34..4614de9f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-11-04 Dave Korn + + * main.cc (main_display): Use apartment-, not multi- threading model + when initialiseing COM. + 2009-11-04 Corinna Vinschen * localdir.cc (browse): Make title text depend on what we do. diff --git a/main.cc b/main.cc index 1ca17151..5cd6e9c8 100644 --- a/main.cc +++ b/main.cc @@ -160,7 +160,7 @@ main_display () // Windows 7 fails to create the ShellLink instance if this is // done later, in the thread which actually creates the shortcuts. extern IShellLink *sl; - CoInitializeEx (NULL, COINIT_MULTITHREADED); + CoInitializeEx (NULL, COINIT_APARTMENTTHREADED); HRESULT res = CoCreateInstance (&CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER, &IID_IShellLink, (LPVOID *) & sl); -- 2.43.5