summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-08-13 16:51:51 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-08-13 16:51:51 +0200
commit479548380392f9c41052e3fa43d91933f36b06df (patch)
treec19bed53992b9d850ff5a1f50ad9dcdf36131c64
parentff3c744efd631ec88baa40b72296d4570f8aba64 (diff)
default to apartment threading for now
-rw-r--r--compat/win32-com.hpp2
-rw-r--r--dinput/dinput.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/compat/win32-com.hpp b/compat/win32-com.hpp
index dcbea089..4e535815 100644
--- a/compat/win32-com.hpp
+++ b/compat/win32-com.hpp
@@ -13,6 +13,6 @@ enum com_type : int
com_apartment = COINIT_APARTMENTTHREADED,
};
-bool OPENTRACK_COMPAT_EXPORT init_com_threading(com_type t = com_multithreaded);
+bool OPENTRACK_COMPAT_EXPORT init_com_threading(com_type t);
#endif
diff --git a/dinput/dinput.cpp b/dinput/dinput.cpp
index d408ff2f..9556815a 100644
--- a/dinput/dinput.cpp
+++ b/dinput/dinput.cpp
@@ -10,7 +10,7 @@ dinput_handle::di_t dinput_handle::handle(dinput_handle::make_di());
LPDIRECTINPUT8& dinput_handle::init_di()
{
- init_com_threading(com_multithreaded);
+ init_com_threading(com_apartment);
static LPDIRECTINPUT8 di_ = nullptr;
if (di_ == nullptr)