summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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)