summaryrefslogtreecommitdiffhomepage
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rw-r--r--gui/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/gui/main.cpp b/gui/main.cpp
index eb040337..a9252c4d 100644
--- a/gui/main.cpp
+++ b/gui/main.cpp
@@ -10,6 +10,7 @@
#include "main-window.hpp"
#include "opentrack-compat/options.hpp"
+#include "opentrack-compat/win32-com.hpp"
using namespace options;
#include <QApplication>
#include <QCommandLineParser>
@@ -111,6 +112,7 @@ static void add_program_library_path()
int main(int argc, char** argv)
{
#ifdef _WIN32
+ init_com_threading(com_apartment);
add_program_library_path();
#elif !defined(__linux)
// workaround QTBUG-38598